summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorDHE <[email protected]>2014-04-15 19:50:56 -0400
committerBrian Behlendorf <[email protected]>2014-04-16 10:59:24 -0700
commit2dbedf5484bd81dde024eeca80e172af8ad871ac (patch)
treea11553546bdd5886c348c6bfd4aa11952107b6b9 /module
parent0b75bdb369df4e0dab96b2778a6421773268df21 (diff)
Uninitialized variable spa_autoreplace used
Caught by ztest and valgrind. Signed-off-by: DHE <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #2259
Diffstat (limited to 'module')
-rw-r--r--module/zfs/spa.c2
1 files changed, 1 insertions, 1 deletions
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);