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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:12 +0000 (14:51 +0100)
commit4e132b2f9d8c6cadc141bbac3a90224e27b8cb49
tree8241602fdeaa7c4f4d496f45a64dd3747e52cfd2
parent16a9af68d48cc51501e2a780fc2ffbbf3690c4ce
net: sonic: replace dev_kfree_skb in sonic_send_packet

[ Upstream commit 49f6c90bf6805948b597eabb499e500a47cf24be ]

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: d9fb9f384292 ("*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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/natsemi/sonic.c