diff options
author | Dick Kennedy | 2017-09-30 02:34:28 +0200 |
---|---|---|
committer | Martin K. Petersen | 2017-10-03 04:46:32 +0200 |
commit | 401bb4169da655f3e5d28d0b208182e1ab60bf2a (patch) | |
tree | 10039b169d1a4ea1901cf95b71a1d15fb203930c /drivers/scsi/lpfc/lpfc_attr.c | |
parent | scsi: lpfc: fix pci hot plug crash in timer management routines (diff) | |
download | kernel-qcow2-linux-401bb4169da655f3e5d28d0b208182e1ab60bf2a.tar.gz kernel-qcow2-linux-401bb4169da655f3e5d28d0b208182e1ab60bf2a.tar.xz kernel-qcow2-linux-401bb4169da655f3e5d28d0b208182e1ab60bf2a.zip |
scsi: lpfc: fix pci hot plug crash in list_add call
During pci hot plug, the kernel crashes in a list_add_call
The lookup by tag function will return null if the IOCB is out of range
or does not have the on txcmplq flag set.
Fix: Check for null return from lookup by tag.
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: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_attr.c')
0 files changed, 0 insertions, 0 deletions