summaryrefslogtreecommitdiffstats
path: root/drivers/xen/events.c
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2011-03-14 10:50:39 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-14 15:53:02 +0100
commita7b807ce8c86925eef92fe6aa79cea4ac7f097c4 (patch)
tree73123e401a3382480eb25fce79c97dba1b2d7cbb /drivers/xen/events.c
parentxen: events: propagate irq allocation failure instead of panicking (diff)
downloadlinux-a7b807ce8c86925eef92fe6aa79cea4ac7f097c4.tar.xz
linux-a7b807ce8c86925eef92fe6aa79cea4ac7f097c4.zip
xen: events: correct locking in xen_irq_from_pirq
One of those spin_lock() calls should be an unlock... Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen/events.c')
-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 3566c00e1e3d..dc8177950d05 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -752,7 +752,7 @@ int xen_irq_from_pirq(unsigned pirq)
}
irq = -1;
out:
- spin_lock(&irq_mapping_update_lock);
+ spin_unlock(&irq_mapping_update_lock);
return irq;
}