]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix panic if driver unloaded when port is offline
authorJames Smart <jsmart2021@gmail.com>
Tue, 26 Jun 2018 15:24:24 +0000 (08:24 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 11 Jul 2018 02:15:08 +0000 (22:15 -0400)
commit8ab51ccf2d8c55963df5d82f5891bfc6a178c1dd
tree33a50da972c8fe4878c26172154a74518fe20f85
parent9b06e411b0fdca09612ec54e556c1412dfa312f0
scsi: lpfc: Fix panic if driver unloaded when port is offline

System crashes when the lpfc module is unloaded after making the port
offline

The nvme queue pointers were freed during port offline, but were later
accessed in pci remove path.

Validate the pointers in pci remove path before accessing them.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c