]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen/pciback: fix XEN_PCI_OP_enable_msix result
authorJan Beulich <JBeulich@suse.com>
Mon, 2 Apr 2012 14:32:22 +0000 (15:32 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 19 Apr 2012 21:07:00 +0000 (17:07 -0400)
commitbb9da7c4485df82590d3f001e3ce34fab5e18229
tree195285aaec255413b65bb1eca2fa1e55c7fe7618
parent1d9993fd16289fcbcc36c4b40d3c79cc295f89b8
xen/pciback: fix XEN_PCI_OP_enable_msix result

Prior to 2.6.19 and as of 2.6.31, pci_enable_msix() can return a
positive value to indicate the number of vectors (less than the amount
requested) that can be set up for a given device. Returning this as an
operation value (secondary result) is fine, but (primary) operation
results are expected to be negative (error) or zero (success) according
to the protocol. With the frontend fixed to match the XenoLinux
behavior, the backend can now validly return zero (success) here,
passing the upper limit on the number of vectors in op->value.

[upstream git commit 0ee46ec]
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/xen-pciback/pciback_ops.c