Whamcloud - gitweb
LU-1448 llite: Prevent NULL pointer dereference on disabled OSC
authorJeremy Filizetti <jeremy.filizetti@gmail.com>
Thu, 31 May 2012 12:26:28 +0000 (08:26 -0400)
committerOleg Drokin <green@whamcloud.com>
Sun, 17 Feb 2013 06:05:51 +0000 (01:05 -0500)
commit34ebeeb7d62808d3d2b46799f26829b7e3f95dbe
tree32fb2e3d34a855a0b4bc7073403533538b725015
parenta2af97abc347e1ea978269429297732e06e82a15
LU-1448 llite: Prevent NULL pointer dereference on disabled OSC

When a file system is mounted with a disabled OSC reading the import
information from the proc file system can result in a NULL pointer
dereference. The Lustre import on a disabled OSC with remain
in the LUSTRE_IMP_NEW state and imp_connection will remain NULL.

Signed-off-by: Jeremy Filizetti <jeremy.filizetti@gmail.com>
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ia6df51a36efbcd5a7fc7668bb23455b253ae4855
Reviewed-on: http://review.whamcloud.com/2995
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/lprocfs_status.c