]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix crash when cpu count is 1 and null irq affinity mask
authorJames Smart <jsmart2021@gmail.com>
Fri, 2 Aug 2019 20:26:12 +0000 (13:26 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 8 Aug 2019 01:56:41 +0000 (21:56 -0400)
commita718d6ad10931f767e5fba7bc8084d2a3f265cdf
treeb83b141c7001fbe5e33cffef89293e33081e952e
parent76e13a38c7688b1d863009dfdebc6743d7833931
scsi: lpfc: Fix crash when cpu count is 1 and null irq affinity mask

When a configurations runs with a single cpu (such as a kdump kernel),
which causes the driver to request a single vector, when the driver
subsequently requests an irq affinity mask, the mask comes back null.  The
driver currently does nothing in this scenario, which leaves mappings to
hardware queues incomplete and crashes the system.

Fix by recognizing the null mask and assigning the vector to the first cpu
in the system.

Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c