diff options
author | Christoph Hellwig <hch@lst.de> | 2017-03-03 07:57:16 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-03-06 22:27:33 -0500 |
commit | c527de41aea24c2cdb6638818008d810013b4d39 (patch) | |
tree | 3b42c4d9800b9ca29d41f67d292a17c4b951aea0 /drivers/scsi/qedf | |
parent | 23456565acf6d452e0368f7380aecd584c019c67 (diff) | |
download | op-kernel-dev-c527de41aea24c2cdb6638818008d810013b4d39.zip op-kernel-dev-c527de41aea24c2cdb6638818008d810013b4d39.tar.gz |
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: 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>
Diffstat (limited to 'drivers/scsi/qedf')
0 files changed, 0 insertions, 0 deletions