]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: vmw_pvscsi: handle the return value from pci_alloc_irq_vectors correctly
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Mar 2017 14:57:16 +0000 (07:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 7 Mar 2017 03:27:33 +0000 (22:27 -0500)
commitb80d4b0cdf5b261593396d680e0a2d6753cc513d
tree3b42c4d9800b9ca29d41f67d292a17c4b951aea0
parent9eacb25e690d224be29afccd60a8d46c9816830b
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: e4a9e31f ("scsi: vmw_pvscsi: switch to pci_alloc_irq_vectors")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Loïc Yhuel <loic.yhuel@gmail.com>
Tested-by: Loïc Yhuel <loic.yhuel@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/vmw_pvscsi.c