summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_nvmet.c
diff options
context:
space:
mode:
authorJames Smart2017-11-21 01:00:42 +0100
committerMartin K. Petersen2017-12-05 02:32:55 +0100
commitc3725bdcdf28f5e2f3a78b69e9dd010f49284a09 (patch)
treedb9c5510bed66f620cadef80a72864de7ecf3123 /drivers/scsi/lpfc/lpfc_nvmet.c
parentscsi: lpfc: Fix crash during driver unload with running nvme traffic (diff)
downloadkernel-qcow2-linux-c3725bdcdf28f5e2f3a78b69e9dd010f49284a09.tar.gz
kernel-qcow2-linux-c3725bdcdf28f5e2f3a78b69e9dd010f49284a09.tar.xz
kernel-qcow2-linux-c3725bdcdf28f5e2f3a78b69e9dd010f49284a09.zip
scsi: lpfc: Fix driver handling of nvme resources during unload
During driver unload, the driver may crash due to NULL pointers. The NULL pointers were due to the driver not protecting itself sufficiently during some of the teardown paths. Additionally, the driver was not waiting for and cleanup up nvme io resources. As such, the driver wasn't making the callbacks to the transport, stalling the transports association teardown. This patch waits for io clean up before tearding down and adds checks for possible NULL pointers. Cc: <stable@vger.kernel.org> # 4.12+ 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>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_nvmet.c')
0 files changed, 0 insertions, 0 deletions