summaryrefslogtreecommitdiff
path: root/drivers/scsi/sd.c
diff options
context:
space:
mode:
authorHuacai Chen <chenhc@lemote.com>2019-11-21 13:40:47 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2019-11-26 21:39:03 -0500
commit45dc8f2d9c94ed74a5e31e63e9136a19a7e16081 (patch)
treebdcbe288d92e461cbc7b9e0c2964114dd0bd82a1 /drivers/scsi/sd.c
parentc8a347931869bf4373bfd4036d297b8e11ab48ab (diff)
scsi: qla2xxx: Fix qla2x00_request_irqs() for MSI
Commit 4fa183455988 ("scsi: qla2xxx: Utilize pci_alloc_irq_vectors/ pci_free_irq_vectors calls.") use pci_alloc_irq_vectors() to replace pci_enable_msi() but it didn't handle the return value correctly. This bug make qla2x00 always fail to setup MSI if MSI-X fail, so fix it. BTW, improve the log message of return value in qla2x00_request_irqs() to avoid confusion. Fixes: 4fa183455988 ("scsi: qla2xxx: Utilize pci_alloc_irq_vectors/pci_free_irq_vectors calls.") Cc: Michael Hernandez <michael.hernandez@cavium.com> Link: https://lore.kernel.org/r/1574314847-14280-1-git-send-email-chenhc@lemote.com Signed-off-by: Huacai Chen <chenhc@lemote.com> Acked-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sd.c')
0 files changed, 0 insertions, 0 deletions