linux-stable/arch/m68k/emu
Pavel Skripkin 06cb2d648f m68k: emu: Fix invalid free in nfeth_cleanup()
[ Upstream commit 761608f5cf ]

In the for loop all nfeth_dev array members should be freed, not only
the first one.  Freeing only the first array member can cause
double-free bugs and memory leaks.

Fixes: 9cd7b14831 ("m68k/atari: ARAnyM - Add support for network access")
Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
Link: https://lore.kernel.org/r/20210705204727.10743-1-paskripkin@gmail.com
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 11:45:18 +02:00
..
Makefile
natfeat.c
nfblock.c block: change ->make_request_fn() and users to return a queue cookie 2015-11-07 10:40:46 -07:00
nfcon.c
nfeth.c m68k: emu: Fix invalid free in nfeth_cleanup() 2021-09-22 11:45:18 +02:00