commit | c3423563c68fc454b805b46cb69fd4816db933e2 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Fri Mar 03 07:58:06 2017 -0700 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 16 17:32:21 2017 +0900 |
tree | 8f9e88266690a6cfd9b192771bd4c113c8a1baeb | |
parent | 9a69645dde1188723d80745c1bc6ee9af2cbe2a7 [diff] |
vmw_vmci: 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: 3bb434cd ("vmw_vmci: switch to pci_irq_alloc_vectors") Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Loïc Yhuel <loic.yhuel@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>