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: NChristoph Hellwig <hch@lst.de> Reported-by: NLoïc Yhuel <loic.yhuel@gmail.com> Tested-by: NLoïc Yhuel <loic.yhuel@gmail.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
Showing
想要评论请 注册 或 登录