]> git.baikalelectronics.ru Git - kernel.git/commit
net: sonic: replace dev_kfree_skb in sonic_send_packet
authorMao Wenan <maowenan@huawei.com>
Wed, 11 Sep 2019 01:36:23 +0000 (09:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Sep 2019 08:14:01 +0000 (09:14 +0100)
commitcfa1030e96de307a7718fcff17e3a471e1a4f812
tree5c52fc55821c55d0dcdf1bc7551f6cb681eef3d5
parenta0baaef2e0593cbb48a1b0a250656fe07cfa33a6
net: sonic: replace dev_kfree_skb in sonic_send_packet

sonic_send_packet will be processed in irq or non-irq
context, so it would better use dev_kfree_skb_any
instead of dev_kfree_skb.

Fixes: f635c5c0bf2f ("*sonic/natsemi/ns83829: Move the National Semi-conductor drivers")
Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/natsemi/sonic.c