summaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2011-03-10 17:08:03 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-10 20:48:34 +0100
commita0e181167ee4254988c8c89d26ffd8ef4cb7deb0 (patch)
tree93deb734e80b618c341d7fa4e7e93501db22ac11 /drivers/xen
parentxen: events: simplify comment (diff)
downloadlinux-a0e181167ee4254988c8c89d26ffd8ef4cb7deb0.tar.xz
linux-a0e181167ee4254988c8c89d26ffd8ef4cb7deb0.zip
xen: events: fix xen_map_pirq_gsi error return
Fix initial value of irq so that first goto out (if pirq or gsi arguments are too large) actually returns an error. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index 0b27080b1918..a9c154d1d2ff 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -592,7 +592,7 @@ int xen_allocate_pirq(unsigned gsi, int shareable, char *name)
*/
int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name)
{
- int irq = 0;
+ int irq = -1;
struct physdev_irq irq_op;
spin_lock(&irq_mapping_update_lock);