Skip to content
Commit c527de41 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Martin K. Petersen
Browse files

scsi: vmw_pvscsi: handle the return value from pci_alloc_irq_vectors correctly



It returns the number of vectors allocated when successful, so check for
a negative error only.

Fixes: 2e48e349 ("scsi: vmw_pvscsi: switch to pci_alloc_irq_vectors")
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarLoïc Yhuel <loic.yhuel@gmail.com>
Tested-by: default avatarLoïc Yhuel <loic.yhuel@gmail.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 23456565
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment