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)
committerJohann Lombardi <johann@whamcloud.com>
Tue, 12 Jun 2012 20:07:45 +0000 (16:07 -0400)
commit65b7e5aba970e1143adb29045c6d9c481f6a195c
treedd00a51a0aa93eef91d55872f81c431773cc483f
parentbd671c0e5f08e9c862f7d79e307f1173355ef463
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>
Change-Id: Ib416b2d706ac9797715db2c0ea4f4eaa79bceb22
Reviewed-on: http://review.whamcloud.com/2977
Reviewed-by: Bobi Jam <bobijam@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/obdclass/lprocfs_status.c