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>
Fri, 29 Jun 2012 03:27:52 +0000 (23:27 -0400)
commite15ecfb0f298a1279f569277b2940f30c41446a1
tree7e5a36d2656355d7152507d30e2072c9103e2f51
parenta664b451764894fbb194a96c39a8cd8dcf8375b7
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