]> git.proxmox.com Git - mirror_zfs.git/commit - lib/libzpool/kernel.c
Fix coverity defects: CID 147531 147532 147533 147535
authorGeLiXin <ge.lixin@zte.com.cn>
Fri, 30 Sep 2016 22:47:57 +0000 (06:47 +0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 30 Sep 2016 22:47:57 +0000 (15:47 -0700)
commit470f12d631764d3706e2702762e9f3ae924cab43
tree894fe812a83384879dbd595744c35c275f482709
parented3ea30fb9341c860c94bf71e771f115ee4801ea
Fix coverity defects: CID 147531 147532 147533 147535

coverity scan CID:147531,type: Argument cannot be negative
- may copy data with negative size
coverity scan CID:147532,type: resource leaks
- may close a fd which is negative
coverity scan CID:147533,type: resource leaks
- may call pwrite64 with a negative size
coverity scan CID:147535,type: resource leaks
- may call fdopen with a negative fd

Reviewed-by: Richard Laager <rlaager@wiktel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: GeLiXin <ge.lixin@zte.com.cn>
Closes #5176
lib/libshare/nfs.c [changed mode: 0644->0755]
lib/libzpool/kernel.c [changed mode: 0644->0755]
module/nvpair/nvpair.c [changed mode: 0644->0755]