xen: fix error handling path if xen_allocate_irq_dynamic fails
authorWei Liu <wei.liu2@citrix.com>
Thu, 31 Jan 2013 14:46:56 +0000 (14:46 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 6 Feb 2013 15:32:45 +0000 (10:32 -0500)
commit68ba45ff389295ddccbb976b8881de7c46140e00
tree9abf172e611c5e1729f273bcb3ae6e4ec2cb484a
parent51ac8893a7a51b196501164e645583bf78138699
xen: fix error handling path if xen_allocate_irq_dynamic fails

It is possible that the call to xen_allocate_irq_dynamic() returns negative
number other than -1.

Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/events.c