summaryrefslogtreecommitdiffstats
path: root/net/rose/af_rose.c
diff options
context:
space:
mode:
authorZhipeng Lu <alexious@zju.edu.cn>2023-12-14 14:04:04 +0100
committerDavid S. Miller <davem@davemloft.net>2023-12-15 11:55:35 +0100
commit309fdb1c33fe726d92d0030481346f24e1b01f07 (patch)
treec85e3e3ba7b55b625b303dfebf190ae8903feae5 /net/rose/af_rose.c
parentnet: sched: ife: fix potential use-after-free (diff)
downloadlinux-309fdb1c33fe726d92d0030481346f24e1b01f07.tar.xz
linux-309fdb1c33fe726d92d0030481346f24e1b01f07.zip
ethernet: atheros: fix a memleak in atl1e_setup_ring_resources
In the error handling of 'offset > adapter->ring_size', the tx_ring->tx_buffer allocated by kzalloc should be freed, instead of 'goto failed' instantly. Fixes: a6a5325239c2 ("atl1e: Atheros L1E Gigabit Ethernet driver") Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn> Reviewed-by: Suman Ghosh <sumang@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rose/af_rose.c')
0 files changed, 0 insertions, 0 deletions