diff options
author | George Wilson <george.wilson@delphix.com> | 2013-02-10 22:21:05 -0800 |
---|---|---|
committer | Christopher Siden <chris.siden@delphix.com> | 2013-02-10 22:21:05 -0800 |
commit | d5285cae913f4e01ffa0e6693a6d8ef1fbea30ba (patch) | |
tree | 204af0fe922145c182507a38bd9134150541b64a /usr/src/uts/common/fs/zfs/dsl_scan.c | |
parent | 7535ae1914017b0e648abd7a139aca709fa82be3 (diff) | |
download | illumos-joyent-d5285cae913f4e01ffa0e6693a6d8ef1fbea30ba.tar.gz |
3522 zfs module should not allow uninitialized variables
Reviewed by: Sebastien Roy <seb@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/uts/common/fs/zfs/dsl_scan.c')
-rw-r--r-- | usr/src/uts/common/fs/zfs/dsl_scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/uts/common/fs/zfs/dsl_scan.c b/usr/src/uts/common/fs/zfs/dsl_scan.c index aec313ae79..e171725799 100644 --- a/usr/src/uts/common/fs/zfs/dsl_scan.c +++ b/usr/src/uts/common/fs/zfs/dsl_scan.c @@ -1627,7 +1627,8 @@ dsl_scan_scrub_cb(dsl_pool_t *dp, zio_priority = ZIO_PRIORITY_SCRUB; needs_io = B_TRUE; scan_delay = zfs_scrub_delay; - } else if (scn->scn_phys.scn_func == POOL_SCAN_RESILVER) { + } else { + ASSERT3U(scn->scn_phys.scn_func, ==, POOL_SCAN_RESILVER); zio_flags |= ZIO_FLAG_RESILVER; zio_priority = ZIO_PRIORITY_RESILVER; needs_io = B_FALSE; |