ehca: fix mismatched use of spin_unlock in irq handler
PATCH 2/4 ehca: fix mismatched use of spin_unlock in irq handler
Here is a patch for ehca_irq.c that fixes mismatched use of spin_unlock in irq handler.
Thanks
Nam
Signed-off-by Hoang-Nam Nguyen <[email protected]>
---
ehca_irq.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-)
drivers/infiniband/hw/ehca/ehca_irq.c +2 -1
@@ -440,7 +440,8 @@ void ehca_tasklet_eq(unsigned long data) cq =idr_find (&ehca_cq_idr, token);if (cq ==NULL ) { -spin_unlock (&ehca_cq_idr_lock); +spin_unlock_irqrestore (&ehca_cq_idr_lock, + flags);break ; }