Whamcloud - gitweb
LU-6507 obdclass: Fix possible NULL pointer dereference 08/14808/4
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 14 May 2015 15:52:06 +0000 (18:52 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 28 May 2015 22:15:22 +0000 (22:15 +0000)
commitd47f00d5a420b594b49564b2e00efca4602c3fb5
tree21f4f42536ff7e6adab39600a129dfd0716eec58
parent98883bd3e2cc48a3a5674ce140ad74bece37df05
LU-6507 obdclass: Fix possible NULL pointer dereference

The imp->imp_connection really could be NULL, we better check for it
before dereferencing it in taht call to libcfs_nid2str_r.

Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Change-Id: I16212eb6eb195eb197683606a4e4709810ff708f
Reviewed-on: http://review.whamcloud.com/14808
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/lprocfs_status.c