[PATCH] fealnx.c calls dev_kfree_skb from atomic context. fix it
From: Denis Vlasenko
Date: Fri Jun 17 2005 - 02:24:12 EST
Hi Jeff,
Just a resend. Applies with offset to 2.6.12-rc2
--
vda
I believe I actually saw 'Badness' message because I used
wrong function.
No need to check and use exactly matching function,
This is not a fast path.
diff -urN linux-2.6.6-bk7.src/drivers/net/fealnx.c linux-2.6.6-bk7-fealnx.src/drivers/net/fealnx.c
--- linux-2.6.6-bk7.src/drivers/net/fealnx.c Thu May 20 21:38:05 2004
+++ linux-2.6.6-bk7-fealnx.src/drivers/net/fealnx.c Thu May 20 21:43:31 2004
@@ -1435,8 +1435,7 @@
if (cur->skbuff) {
pci_unmap_single(np->pci_dev, cur->buffer,
cur->skbuff->len, PCI_DMA_TODEVICE);
- dev_kfree_skb(cur->skbuff);
- /* or dev_kfree_skb_irq(cur->skbuff); ? */
+ dev_kfree_skb_any(cur->skbuff);
cur->skbuff = NULL;
}
cur->status = 0;