public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [TRIVIAL] prism54/islpci_eth.c: dev_kfree_skb in irq context
@ 2006-01-02 15:45 Graham Gower
  2006-01-02 16:37 ` Daniel Drake
  0 siblings, 1 reply; 6+ messages in thread
From: Graham Gower @ 2006-01-02 15:45 UTC (permalink / raw)
  To: linux-kernel, prism54-devel

dev_kfree_skb shouldn't be used in an IRQ context.

Signed-off-by: Graham Gower <graham.gower@gmail.com>


--- linux/drivers/net/wireless/prism54/islpci_eth.c.orig	2006-01-03
01:23:27.000000000 +1030
+++ linux/drivers/net/wireless/prism54/islpci_eth.c	2006-01-03
00:38:46.000000000 +1030
@@ -178,7 +178,7 @@
 #endif

 			newskb->dev = skb->dev;
-			dev_kfree_skb(skb);
+			dev_kfree_skb_irq(skb);
 			skb = newskb;
 		}
 	}
@@ -242,7 +242,7 @@

       drop_free:
 	/* free the skbuf structure before aborting */
-	dev_kfree_skb(skb);
+	dev_kfree_skb_irq(skb);
 	skb = NULL;

 	priv->statistics.tx_dropped++;

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: [PATCH] [TRIVIAL] prism54/islpci_eth.c: dev_kfree_skb in irq context
@ 2006-01-03  9:58 Roger While
  2006-01-03 12:19 ` Graham Gower
  0 siblings, 1 reply; 6+ messages in thread
From: Roger While @ 2006-01-03  9:58 UTC (permalink / raw)
  To: graham.gower; +Cc: linux-kernel

What makes you think this is in IRQ context ?



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

end of thread, other threads:[~2006-01-03 23:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-02 15:45 [PATCH] [TRIVIAL] prism54/islpci_eth.c: dev_kfree_skb in irq context Graham Gower
2006-01-02 16:37 ` Daniel Drake
  -- strict thread matches above, loose matches on Subject: below --
2006-01-03  9:58 Roger While
2006-01-03 12:19 ` Graham Gower
2006-01-03 13:11   ` Patrick McHardy
2006-01-03 23:03     ` Graham Gower

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