public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 2.4.18 Eicon ISDN driver fix.
@ 2002-02-26 19:26 petter wahlman
  2002-02-26 19:54 ` Dave Jones
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: petter wahlman @ 2002-02-26 19:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: info

The following code is calling a possibly blocking operation while
holding a spinlock.


Petter Wahlman


--- linux-2.4.18/drivers/isdn/eicon/eicon_mod.c Fri Dec 21 18:41:54 2001
+++ linux-2.4.18-pw/drivers/isdn/eicon/eicon_mod.c      Mon Feb 25
23:45:05 2002
@@ -665,8 +665,11 @@
                        else
                                cnt = skb->len;

-                       if (user)
+                       if (user) {
+                               spin_unlock_irqrestore(&eicon_lock,
flags);
                                copy_to_user(p, skb->data, cnt);
+                               spin_lock_irqsave(&eicon_lock, flags);
+                       }
                        else
                                memcpy(p, skb->data, cnt);





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-03-01  7:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-26 19:26 [PATCH] 2.4.18 Eicon ISDN driver fix petter wahlman
2002-02-26 19:54 ` Dave Jones
2002-02-26 19:49   ` petter wahlman
2002-02-26 20:50 ` Alan Cox
2002-02-27  7:58 ` Armin Schindler
2002-02-28 17:41   ` Marcelo Tosatti
2002-02-28 21:14     ` petter wahlman
2002-03-01  7:30     ` Armin Schindler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox