[SCSI] fnic: Kernel panic while running sh/nosh with max lun cfg
authorSesidhar Beddel <sebaddel@cisco.com>
Mon, 9 Sep 2013 20:31:50 +0000 (13:31 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 11 Sep 2013 22:56:44 +0000 (15:56 -0700)
commitd0385d926577d87e54f37dfd4f8e4e2de399aa37
tree19d0d412b91a5b86a15ee81cee10692b4dabf131
parent1259c5dc752474f74ef3da451dadeafce1d48b55
[SCSI] fnic: Kernel panic while running sh/nosh with max lun cfg

Kernel panics due to NULL lport while executing the log message because
of synchronization issues between libfc and scsi transport fc. Checking
for NULL pointers at the beginning of this routine would resolve the issue
from kernel panic point of view.

Signed-off-by: Sesidhar Baddel <sebaddel@cisco.com>
Signed-off-by: Hiral Patel <hiralpat@cisco.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/fnic/fnic_scsi.c