diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-03-10 16:08:03 +0000 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-10 14:48:34 -0500 |
commit | a0e181167ee4254988c8c89d26ffd8ef4cb7deb0 (patch) | |
tree | 93deb734e80b618c341d7fa4e7e93501db22ac11 /drivers/xen | |
parent | 653378acdd477a299f468e396c7719911ac57881 (diff) | |
download | kernel_goldelico_gta04-a0e181167ee4254988c8c89d26ffd8ef4cb7deb0.zip kernel_goldelico_gta04-a0e181167ee4254988c8c89d26ffd8ef4cb7deb0.tar.gz kernel_goldelico_gta04-a0e181167ee4254988c8c89d26ffd8ef4cb7deb0.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c index 0b27080..a9c154d 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); |