diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-03-10 11:08:03 -0500 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-03-10 14:48:34 -0500 |
commit | a0e181167ee4254988c8c89d26ffd8ef4cb7deb0 (patch) | |
tree | 93deb734e80b618c341d7fa4e7e93501db22ac11 | |
parent | 653378acdd477a299f468e396c7719911ac57881 (diff) |
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>
-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 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) | |||
592 | */ | 592 | */ |
593 | int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name) | 593 | int xen_map_pirq_gsi(unsigned pirq, unsigned gsi, int shareable, char *name) |
594 | { | 594 | { |
595 | int irq = 0; | 595 | int irq = -1; |
596 | struct physdev_irq irq_op; | 596 | struct physdev_irq irq_op; |
597 | 597 | ||
598 | spin_lock(&irq_mapping_update_lock); | 598 | spin_lock(&irq_mapping_update_lock); |