]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
commita86c71ba3022331f79662d7f12d1b25188c7e377
treeb83b141c7001fbe5e33cffef89293e33081e952e
parente82f04ec6ba91065fd33a6201ffd7cab840e1475
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