diff options
author | George Wilson <george.wilson@delphix.com> | 2013-02-11 06:21:05 +0000 |
---|---|---|
committer | Brian Behlendorf <behlendorf1@llnl.gov> | 2013-10-30 21:51:27 +0000 |
commit | a117a6d66e5cf1e9d4f173bccc786a169e9a8e04 (patch) | |
tree | 26f5e36ff44a6f4977a34d66b528892560b74185 /module/zfs/spa.c | |
parent | a35beedfb3f25596b4ec9122742c1337083118f5 (diff) | |
download | src-a117a6d66e5cf1e9d4f173bccc786a169e9a8e04.tar.gz src-a117a6d66e5cf1e9d4f173bccc786a169e9a8e04.zip |
Diffstat (limited to 'module/zfs/spa.c')
-rw-r--r-- | module/zfs/spa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 2bd011a0cbff..b400896c2969 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -1443,7 +1443,7 @@ spa_load_l2cache(spa_t *spa) uint_t nl2cache; int i, j, oldnvdevs; uint64_t guid; - vdev_t *vd, **oldvdevs, **newvdevs = NULL; + vdev_t *vd, **oldvdevs, **newvdevs; spa_aux_vdev_t *sav = &spa->spa_l2cache; ASSERT(spa_config_held(spa, SCL_ALL, RW_WRITER) == SCL_ALL); @@ -1454,6 +1454,7 @@ spa_load_l2cache(spa_t *spa) newvdevs = kmem_alloc(nl2cache * sizeof (void *), KM_PUSHPAGE); } else { nl2cache = 0; + newvdevs = NULL; } oldvdevs = sav->sav_vdevs; |