diff options
| author | Casper Andersson <[email protected]> | 2022-12-02 08:35:44 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2022-12-05 11:33:09 +0000 |
| commit | 121c6672b0191ffcebff4b88ec022c39e0a95789 (patch) | |
| tree | 9a97153cbc47a322749ead815cee2a7fdc996d25 /drivers/net/xen-netfront.c | |
| parent | octeontx2-pf: Fix potential memory leak in otx2_init_tc() (diff) | |
| download | kernel-121c6672b0191ffcebff4b88ec022c39e0a95789.tar.gz kernel-121c6672b0191ffcebff4b88ec022c39e0a95789.zip | |
net: microchip: sparx5: correctly free skb in xmit
consume_skb on transmitted, kfree_skb on dropped, do not free on
TX_BUSY.
Previously the xmit function could return -EBUSY without freeing, which
supposedly is interpreted as a drop. And was using kfree on successfully
transmitted packets.
sparx5_fdma_xmit and sparx5_inject returns error code, where -EBUSY
indicates TX_BUSY and any other error code indicates dropped.
Fixes: f3cad2611a77 ("net: sparx5: add hostmode with phylink support")
Signed-off-by: Casper Andersson <[email protected]>
Reviewed-by: Horatiu Vultur <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions
