Commit c4d8573
net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload()
BugLink: https://bugs.launchpad.net/bugs/2003914
[ Upstream commit f150b63 ]
The skb allocated by stmmac_test_get_arp_skb() hasn't been released in
some error handling case, which will lead to a memory leak. Fix this up
by adding kfree_skb() to release skb.
Compile tested only.
Fixes: 5e3fb0a ("net: stmmac: selftests: Implement the ARP Offload test")
Signed-off-by: Zhang Changzhong <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Kamal Mostafa <[email protected]>
Signed-off-by: Stefan Bader <[email protected]>1 parent 7639cc0 commit c4d8573
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1614 | 1614 | | |
1615 | 1615 | | |
1616 | 1616 | | |
1617 | | - | |
| 1617 | + | |
| 1618 | + | |
1618 | 1619 | | |
| 1620 | + | |
1619 | 1621 | | |
1620 | 1622 | | |
1621 | | - | |
| 1623 | + | |
| 1624 | + | |
1622 | 1625 | | |
| 1626 | + | |
1623 | 1627 | | |
1624 | 1628 | | |
1625 | 1629 | | |
| |||
0 commit comments