LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 2.6.21 2/4] ehca: fix mismatched use of spin_unlock in irq handler
@ 2007-01-23 23:12 Hoang-Nam Nguyen
  0 siblings, 0 replies; only message in thread
From: Hoang-Nam Nguyen @ 2007-01-23 23:12 UTC (permalink / raw)
  To: Roland Dreier, hch, linux-kernel, linuxppc-dev, openib-general,
	openfabrics-ewg
  Cc: raisch

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 <hnguyen@de.ibm.com>
---


 ehca_irq.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nurp infiniband_orig/drivers/infiniband/hw/ehca/ehca_irq.c infiniband_work/drivers/infiniband/hw/ehca/ehca_irq.c
--- infiniband_orig/drivers/infiniband/hw/ehca/ehca_irq.c	2007-01-19 19:40:32.000000000 +0100
+++ infiniband_work/drivers/infiniband/hw/ehca/ehca_irq.c	2007-01-23 22:38:02.000000000 +0100
@@ -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;
 					}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-23 23:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-23 23:12 [PATCH 2.6.21 2/4] ehca: fix mismatched use of spin_unlock in irq handler Hoang-Nam Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).