Commit 782486a
net: rswitch: Fix missing dev_kfree_skb_any() in error path
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]>1 parent 1aaef86 commit 782486a
1 file changed
+12
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1517 | 1517 | | |
1518 | 1518 | | |
1519 | 1519 | | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
| 1520 | + | |
| 1521 | + | |
1524 | 1522 | | |
1525 | 1523 | | |
1526 | 1524 | | |
| |||
1533 | 1531 | | |
1534 | 1532 | | |
1535 | 1533 | | |
1536 | | - | |
1537 | | - | |
1538 | | - | |
1539 | | - | |
| 1534 | + | |
| 1535 | + | |
1540 | 1536 | | |
1541 | 1537 | | |
1542 | 1538 | | |
| |||
1558 | 1554 | | |
1559 | 1555 | | |
1560 | 1556 | | |
| 1557 | + | |
| 1558 | + | |
| 1559 | + | |
| 1560 | + | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
1561 | 1565 | | |
1562 | 1566 | | |
1563 | 1567 | | |
| |||
0 commit comments