]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk_eth_soc: fix build_skb cleanup
authorIlya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Fri, 23 Apr 2021 05:20:56 +0000 (22:20 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 20:31:57 +0000 (13:31 -0700)
commit4b3e29e025f17259cbf9ca8238d844d8eb7a3087
treee177587a74526025252b8dcfcce3095ca040d7a4
parent6307d2bc366ccf29b4168201f0e7707622be2ce9
net: ethernet: mtk_eth_soc: fix build_skb cleanup

In case build_skb fails, call skb_free_frag on the correct pointer. Also
update the DMA structures with the new mapping before exiting, because
the mapping was successful

Suggested-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c