Skip to content
Commit c3423563 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Greg Kroah-Hartman
Browse files

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: default avatarChristoph Hellwig <hch@lst.de>
Reported-by: default avatarLoïc Yhuel <loic.yhuel@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9a69645d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment