]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/irq: If we fail during msi_capability_init return proper error code.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 29 Sep 2011 17:26:45 +0000 (13:26 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 3 Oct 2011 16:22:19 +0000 (12:22 -0400)
commit9437c67cc8d6524a82fe7f3d5eca4a13c78123ed
tree8fafd4752f7bd5a9f69b28ccda1c6e6c7f09b8ad
parent089a5d8106d8969edcd57e61724ab039c5f8bbd1
xen/irq: If we fail during msi_capability_init return proper error code.

There are three different modes: PV, HVM, and initial domain 0. In all
the cases we would return -1 for failure instead of a proper error code.
Fix this by propagating the error code from the generic IRQ code.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/pci/xen.c
drivers/xen/events.c