All of lore.kernel.org
 help / color / mirror / Atom feed
* [BK PATCH] fix oopsable net driver bug
@ 2003-11-23 17:36 Jeff Garzik
  0 siblings, 0 replies; only message in thread
From: Jeff Garzik @ 2003-11-23 17:36 UTC (permalink / raw)
  To: torvalds; +Cc: netdev


dev_kfree_skb, unlike kfree, will oops if passed NULL...
and it might be passed NULL in this case, if skb_padto() returns NULL.


Linus, please do a

	bk pull bk://gkernel.bkbits.net/net-drivers-2.5

This will update the following files:

 drivers/net/sis190.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

through these ChangeSets:

<jgarzik@redhat.com> (03/11/20 1.1478)
   [netdrvr sis190] fix oopsable bug in TX path, related to skb_padto return
   
   Caught by Francois Romieu.

diff -Nru a/drivers/net/sis190.c b/drivers/net/sis190.c
--- a/drivers/net/sis190.c	Sun Nov 23 12:34:07 2003
+++ b/drivers/net/sis190.c	Sun Nov 23 12:34:07 2003
@@ -949,7 +949,8 @@
 
 drop_tx:
 	tp->stats.tx_dropped++;
-	dev_kfree_skb(skb);
+	if (skb)
+		dev_kfree_skb(skb);
 	return 0;
 }
 

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

only message in thread, other threads:[~2003-11-23 17:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-23 17:36 [BK PATCH] fix oopsable net driver bug Jeff Garzik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.