mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH] 2.4.18 Eicon ISDN driver fix.
  2002-02-26 19:26 ` petter wahlman
@ 2002-02-26 19:54 Dave Jones
  2002-02-26 19:26 ` petter wahlman
  2 siblings, 1 reply; 8+ messages in thread
From: Dave Jones @ 2002-02-26 19:54 UTC (permalink / raw)
  To: petter wahlman; +Cc: linux-kernel, info

On Tue, Feb 26, 2002 at 08:26:18PM +0100, petter wahlman wrote:
 > +++ linux-2.4.18-pw/drivers/isdn/eicon/eicon_mod.c      Mon Feb 25

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

What happens if something else adds/removes to card->statq, or
frees the skb after you drop the lock?  I'm not familiar with
this code, but from a quick look, it looks like this introduces
a race no ?

-- 
| Dave Jones.        http://www.codemonkey.org.uk
| SuSE Labs

^ 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:54 [PATCH] 2.4.18 Eicon ISDN driver fix Dave Jones
2002-02-26 19:26 ` petter wahlman
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

all inboxes | Powered by JetHome®