bfa: Fix for crash when bfa_itnim is NULL
authorAnil Gurumurthy <anil.gurumurthy@qlogic.com>
Thu, 26 Nov 2015 08:54:00 +0000 (03:54 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 2 Dec 2015 22:06:45 +0000 (17:06 -0500)
commit3c3da12d3174891f61f0f2c672da095562f19b92
treed42fecd5fcd2b39f32ba22b0fc0d84ebd9d7de5f
parent889d0d42667c998a099028f845c0be074acb4b90
bfa: Fix for crash when bfa_itnim is NULL

Fix a very corner case when the port gets disconnected and the BFA and
FCS layers clean up references to the IT nexus.  During this window if a
task management command is issued by the SCSI-ML and ends up referencing
a NULL itnim, it could lead to a crash.

Signed-off-by: Sudarsana Kalluru <sudarsana.kalluru@qlogic.com>
Signed-off-by: Anil Gurumurthy <anil.gurumurthy@qlogic.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfad_im.c