From 2dbedf5484bd81dde024eeca80e172af8ad871ac Mon Sep 17 00:00:00 2001 From: DHE Date: Tue, 15 Apr 2014 19:50:56 -0400 Subject: [PATCH] Uninitialized variable spa_autoreplace used Caught by ztest and valgrind. Signed-off-by: DHE Signed-off-by: Brian Behlendorf Closes #2259 --- module/zfs/spa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/spa.c b/module/zfs/spa.c index af93b7ce5..6a5d48aab 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -2549,7 +2549,7 @@ spa_load_impl(spa_t *spa, uint64_t pool_guid, nvlist_t *config, return (spa_vdev_err(rvd, VDEV_AUX_CORRUPT_DATA, EIO)); if (error == 0) { - uint64_t autoreplace; + uint64_t autoreplace = 0; spa_prop_find(spa, ZPOOL_PROP_BOOTFS, &spa->spa_bootfs); spa_prop_find(spa, ZPOOL_PROP_AUTOREPLACE, &autoreplace); -- 2.40.0