diff options
author | DHE <git@dehacked.net> | 2014-04-15 19:50:56 -0400 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2014-04-16 10:59:24 -0700 |
commit | 2dbedf5484bd81dde024eeca80e172af8ad871ac (patch) | |
tree | a11553546bdd5886c348c6bfd4aa11952107b6b9 /module | |
parent | 0b75bdb369df4e0dab96b2778a6421773268df21 (diff) |
Uninitialized variable spa_autoreplace used
Caught by ztest and valgrind.
Signed-off-by: DHE <git@dehacked.net>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #2259
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/spa.c | 2 |
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); |