Whamcloud - gitweb
LU-2444 build: fix 'error handling' issues
authorSebastien Buisson <sebastien.buisson@bull.net>
Fri, 7 Dec 2012 15:12:38 +0000 (16:12 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 9 Feb 2013 03:14:46 +0000 (22:14 -0500)
commit7bf1d7c6cb7d0a7231b3fdcb9e3d3ec3129fb427
treee55bdfcd7955f31ed98419d14d4d4d40d0068370
parent479a1f05063769cd16d99a94512e94c65131e6f3
LU-2444 build: fix 'error handling' issues

Fix 'error handling issues' defects found by Coverity version
6.0.3:
Unchecked return value (CHECKED_RETURN)
Value returned from a function is not checked for errors before
being used.
Argument cannot be negative (NEGATIVE_RETURNS)
Negative value used as argument to a function expecting a
positive value.

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: I44022a7d7227ee46345b77701b4c5199a74c386d
Reviewed-on: http://review.whamcloud.com/4772
Tested-by: Hudson
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Keith Mannthey <keith.mannthey@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_pool.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_llog.c
lustre/obdclass/lu_object.c
lustre/ofd/ofd_io.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/utils/mount_lustre.c
lustre/utils/mount_utils.c
lustre/utils/obd.c