]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix System panic after loading the driver
authorJames Smart <jsmart2021@gmail.com>
Fri, 2 Jun 2017 04:07:05 +0000 (21:07 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 13 Jun 2017 01:37:31 +0000 (21:37 -0400)
commit077a1569454263b8ccf0f29706aa1f374bb86448
tree5aa1a047bc3fb014166e41b58c25a0dc31c72101
parentff1f99fd1f796487d41f2860ccf100b1ad27e7a7
scsi: lpfc: Fix System panic after loading the driver

System panic with general protection fault during driver load

The driver uses a static array sli4_hba.handler_name to store the irq
handler names. If the io_channel_irqs exceeds the pre-allocated size
(32+1), then the driver will overwrite other fields of sli4_hba.

Fix: Dynamically allocate handler_name.

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_init.c
drivers/scsi/lpfc/lpfc_sli4.h