]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitb83d005e63ba2383738c1818691e973761d1e860
tree5aa1a047bc3fb014166e41b58c25a0dc31c72101
parentecbb227e635a61f751e8c8ad1c585a0c4ed11de1
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