]> asedeno.scripts.mit.edu Git - linux.git/commit
scsi: lpfc: fix pci hot plug crash in timer management routines
authorDick Kennedy <dick.kennedy@broadcom.com>
Sat, 30 Sep 2017 00:34:27 +0000 (17:34 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 3 Oct 2017 02:46:32 +0000 (22:46 -0400)
commit1901762f2ca2747ed269239ca5332a8023ce4e3d
treeb9fc42687508789dae446dd15cea43138e5ac36a
parent85ce6b42d04493f5617d41727a27ded2d1908f2a
scsi: lpfc: fix pci hot plug crash in timer management routines

During pci hot plug, the kernel crashes in timer management code.

The sli4 remove_one handler is not stoping the timers as it starts to
remove the port so that it can be swapped.

Fix: Stop the timers early in the handler routine.

Note: Fix in SLI-4 only. SLI-3 already stopped the timers properly.

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>
drivers/scsi/lpfc/lpfc_init.c