]> 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>
Thu, 29 Sep 2011 18:33:28 +0000 (14:33 -0400)
commit3f5781ba0467ce84ff37a0e4348a2e604fe866fc
tree9d368627261534c27977763e6bde58af4a239bc0
parent49f42c50448d581dbe62f288252265a9d31de1ea
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