]> git.baikalelectronics.ru Git - kernel.git/commit
vmw_vmci: handle the return value from pci_alloc_irq_vectors correctly
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Mar 2017 14:58:06 +0000 (07:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Mar 2017 08:32:21 +0000 (17:32 +0900)
commit327fbf7780fc874c57b850aef1178f622fdd5668
tree8f9e88266690a6cfd9b192771bd4c113c8a1baeb
parentda924ebb744394909ace0f8d5b3ea2a53c5f9d2b
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: 0a47e87d ("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>
drivers/misc/vmw_vmci/vmci_guest.c