summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorZhang Changzhong <zhangchangzhong@huawei.com>2022-12-07 09:31:59 +0100
committerDavid S. Miller <davem@davemloft.net>2022-12-09 11:49:39 +0100
commitf150b63f3fa5fdd81e0dd6151e8850268e29438c (patch)
tree1cc3ee40fdcbc1338dcb8798b4f9802e5e61cb44 /drivers/spi
parentnet: defxx: Fix missing err handling in dfx_init() (diff)
downloadlinux-f150b63f3fa5fdd81e0dd6151e8850268e29438c.tar.xz
linux-f150b63f3fa5fdd81e0dd6151e8850268e29438c.zip
net: stmmac: selftests: fix potential memleak in stmmac_test_arpoffload()
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: 5e3fb0a6e2b3 ("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>
Diffstat (limited to 'drivers/spi')
0 files changed, 0 insertions, 0 deletions