Whamcloud - gitweb
LU-7937 utils: Fix NULL pointer dereference 94/19194/4
authorDmitry Eremin <dmitry.eremin@intel.com>
Tue, 29 Mar 2016 15:09:47 +0000 (18:09 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 22 Apr 2016 15:48:10 +0000 (15:48 +0000)
commit19535757440c00b92b9081a3a8a6ae3b7ae60396
tree66331d0907328240999a443d5cc8c6f826eec053
parentf21b415d15eda21aa7f489242b0eb844b968be7a
LU-7937 utils: Fix NULL pointer dereference

Check the error of malloc() function and handle it properly.

Change-Id: I2763d1b6d9c97c137a2593077ee31eaa3758ad81
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/19194
Tested-by: Jenkins
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
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/utils/lustre_cfg.c