Skip to content

Commit

Permalink
xen: events: correct locking in xen_irq_from_pirq
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ian Campbell authored and Konrad Rzeszutek Wilk committed Mar 14, 2011
1 parent 7bee976 commit a7b807c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a7b807c

Please sign in to comment.