Whamcloud - gitweb
LU-2217 build: fix 'NULL pointer dereference' errors 20/4720/21
authorSebastien Buisson <sebastien.buisson@bull.net>
Tue, 21 May 2013 09:07:02 +0000 (11:07 +0200)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 6 Sep 2013 18:31:06 +0000 (18:31 +0000)
commita926e593b0c769d20aef191e2b0b6b1d881b6637
tree12bd7df0520e01f861eca9de859a7147d55365d3
parent72afa19c19d5acc359e3304f474ff3b1830672e4
LU-2217 build: fix 'NULL pointer dereference' errors

Fix 'NULL pointer dereference' defects found by Coverity version
6.5.3:
Dereference after null check (FORWARD_NULL)
For instance, Passing null pointer to a function which dereferences
it.
Dereference before null check (REVERSE_INULL)
Null-checking variable suggests that it may be null, but it has
already been dereferenced on all paths leading to the check.
Dereference null return value (NULL_RETURNS)

Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
Change-Id: I646d75d488b66ed348ec51cc2b69f0b644474c30
Reviewed-on: http://review.whamcloud.com/4720
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
25 files changed:
lnet/klnds/o2iblnd/o2iblnd.c
lnet/lnet/lib-move.c
lnet/selftest/conctl.c
lustre/fld/lproc_fld.c
lustre/include/lustre/lustre_user.h
lustre/ldlm/ldlm_request.c
lustre/lmv/lmv_obd.c
lustre/lod/lod_object.c
lustre/lov/lov_request.c
lustre/mdc/mdc_lib.c
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_open.c
lustre/mgc/mgc_request.c
lustre/obdclass/lprocfs_status.c
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_obd.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_scrub.c
lustre/osp/lproc_osp.c
lustre/osp/osp_sync.c
lustre/ptlrpc/layout.c
lustre/ptlrpc/sec_config.c
lustre/utils/liblustreapi.c
lustre/utils/nidlist.c
lustre/utils/obd.c