[PATCH] [TRIVIAL] prism54/islpci_eth.c: dev_kfree_skb in irq context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dev_kfree_skb shouldn't be used in an IRQ context.

Signed-off-by: Graham Gower <[email protected]>


--- 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++;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux