提交 400de2c0 编写于 作者: D Denis Vlasenko 提交者: Jeff Garzik

[PATCH] fealnx.c calls dev_kfree_skb from atomic context

Signed-off-by: NAndrew Morton <akpm@osdl.org>
上级 1cc68ae0
...@@ -1423,8 +1423,7 @@ static void reset_tx_descriptors(struct net_device *dev) ...@@ -1423,8 +1423,7 @@ static void reset_tx_descriptors(struct net_device *dev)
if (cur->skbuff) { if (cur->skbuff) {
pci_unmap_single(np->pci_dev, cur->buffer, pci_unmap_single(np->pci_dev, cur->buffer,
cur->skbuff->len, PCI_DMA_TODEVICE); cur->skbuff->len, PCI_DMA_TODEVICE);
dev_kfree_skb(cur->skbuff); dev_kfree_skb_any(cur->skbuff);
/* or dev_kfree_skb_irq(cur->skbuff); ? */
cur->skbuff = NULL; cur->skbuff = NULL;
} }
cur->status = 0; cur->status = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册