Whamcloud - gitweb
LU-1399 config: check lustre_cfg_new() return 39/10739/5
authorAndreas Dilger <andreas.dilger@intel.com>
Tue, 17 Jun 2014 22:20:54 +0000 (16:20 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 26 Dec 2014 18:02:52 +0000 (18:02 +0000)
commit2d15edc7be83555a7fa17a666d99b6af4922ab82
treeb15c900836fc8ca29fe197637d7d49987700eda6
parent825570b0b03e0fd70aba5400dedca4e6d94d5141
LU-1399 config: check lustre_cfg_new() return

Check if lustre_cfg_new() fails its allocation and pass that error
on to the caller instead of dereferencing the NULL pointer.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I8a934777ea68a866f5f087a6c0948a6dbc3ebbe5
Reviewed-on: http://review.whamcloud.com/10739
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lproc_lod.c
lustre/mdt/mdt_handler.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_handler.c
lustre/obdclass/obd_config.c
lustre/ofd/ofd_dev.c
lustre/utils/obd.c