scsi: lpfc: Fix system crash when port is reset.
authorJames Smart <jsmart2021@gmail.com>
Mon, 15 May 2017 22:20:39 +0000 (15:20 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 May 2017 01:17:54 +0000 (21:17 -0400)
commit0c9c6a75141810acade82add4f4708959a5d3a1d
tree5a0490280fde16d0cde18363d9bf4fadf97fd90c
parent845d9e8df2fa879e6494e786f290e1fd5560ac8c
scsi: lpfc: Fix system crash when port is reset.

The driver panic when using the els_wq during port reset.

Check for NULL els_wq before dereferencing.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc.h
drivers/scsi/lpfc/lpfc_hbadisc.c