Commit 85afa28
net: rswitch: Fix missing dev_kfree_skb_any() in error path
[ Upstream commit 782486a ]
Before returning the rswitch_start_xmit() in the error path,
dev_kfree_skb_any() should be called. So, fix it.
Fixes: 33f5d73 ("net: renesas: rswitch: Improve TX timestamp accuracy")
Signed-off-by: Yoshihiro Shimoda <[email protected]>
Reviewed-by: Wojciech Drewek <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent 940af3f commit 85afa28
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1514 | 1514 | | |
1515 | 1515 | | |
1516 | 1516 | | |
1517 | | - | |
1518 | | - | |
1519 | | - | |
1520 | | - | |
| 1517 | + | |
| 1518 | + | |
1521 | 1519 | | |
1522 | 1520 | | |
1523 | 1521 | | |
| |||
1530 | 1528 | | |
1531 | 1529 | | |
1532 | 1530 | | |
1533 | | - | |
1534 | | - | |
1535 | | - | |
1536 | | - | |
| 1531 | + | |
| 1532 | + | |
1537 | 1533 | | |
1538 | 1534 | | |
1539 | 1535 | | |
| |||
1555 | 1551 | | |
1556 | 1552 | | |
1557 | 1553 | | |
| 1554 | + | |
| 1555 | + | |
| 1556 | + | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
1558 | 1562 | | |
1559 | 1563 | | |
1560 | 1564 | | |
| |||
0 commit comments