[PATCH] vmw_vmci: handle the return value from pci_alloc_irq_vectors correctly

2017-03-03 Thread Christoph Hellwig
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 Reported-by: Loïc Yhuel --- drivers/misc/vmw_vmci/vmci_guest.c | 4

[PATCH] vmw_vmci: handle the return value from pci_alloc_irq_vectors correctly

2017-03-03 Thread Christoph Hellwig
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 Reported-by: Loïc Yhuel --- drivers/misc/vmw_vmci/vmci_guest.c | 4 ++-- 1 file changed, 2