]> git.proxmox.com Git - mirror_zfs.git/commit - module/zfs/spa.c
Fix coverity defects: CID 147540, 147542
authorcao <cao.xuewen@zte.com.cn>
Thu, 10 Nov 2016 01:35:26 +0000 (09:35 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 10 Nov 2016 01:35:26 +0000 (17:35 -0800)
commit3bfd95d5898b1318f9a5c36d1cc43cf23d004f64
tree69b6824b5fa16153be094a5242456e00c80f0b08
parent7e5ea7be7f69231b66c1affddb870fcea8c3a4d8
Fix coverity defects: CID 147540, 147542

CID 147540: unsigned_compare
- Cast nsec to a int32_t to properly detect the expected overflow.
CID 147542: unsigned_compare
- intval can never be less than ZIO_FAILURE_MODE_WAIT which is
  defined to be zero.  Remove this useless check.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: cao.xuewen <cao.xuewen@zte.com.cn>
Closes #5379
include/zpios-ctl.h
module/zfs/spa.c