1
0
Fork 0

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>
hifive-unleashed-5.1
Ian Campbell 2011-03-10 16:08:03 +00:00 committed by Konrad Rzeszutek Wilk
parent 653378acdd
commit a0e181167e
1 changed files with 1 additions and 1 deletions

View File

@ -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);