mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload()
[ Upstream commitf150b63f3f] 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:5e3fb0a6e2("net: stmmac: selftests: Implement the ARP Offload test") Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e6730e15df
commit
bfbc4f7f82
1 changed files with 6 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue