]> git.baikalelectronics.ru Git - kernel.git/commit
netpoll: Remove strong unnecessary assumptions about skbs
authorEric W. Biederman <ebiederm@xmission.com>
Thu, 27 Mar 2014 22:41:04 +0000 (15:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Mar 2014 21:58:37 +0000 (17:58 -0400)
commit4d32e6c356c04fb2fe0a415053ce024156859a9d
tree27705e68d54e29f2c9356d07fca45562b201f290
parentd84e0ff3e8074966c7372ca580046a27be426a60
netpoll: Remove strong unnecessary assumptions about skbs

Remove the assumption that the skbs that make it to
netpoll_send_skb_on_dev are allocated with find_skb, such that
skb->users == 1 and nothing is attached that would prevent the skbs from
being freed from hard irq context.

Remove this assumption by replacing __kfree_skb on error paths with
dev_kfree_skb_irq (in hard irq context) and kfree_skb (in process
context).

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c