]> granicus.if.org Git - zfs/commit
Fix coverity defects: CID 155928
authorDon Brady <don.brady@intel.com>
Tue, 7 Feb 2017 17:29:47 +0000 (10:29 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 7 Feb 2017 17:29:47 +0000 (09:29 -0800)
commitcd5083c00c6215f4f15c04e30feeb5f9457ec896
tree8c4065e367132cf5785ebce237ce1bb6d62afebb
parent582cc0141699991da38ba8bfc8eb938ecb2d9856
Fix coverity defects: CID 155928

CID 155928: Integer handling issues (DIVIDE_BY_ZERO)

In the current vdev label, the leaf count is always non-zero
but it doesn't hurt to check the count for future proofing.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Don Brady <don.brady@intel.com>
Closes #5749
cmd/zdb/zdb.c