diff options
author | Pavel Skripkin <paskripkin@gmail.com> | 2021-07-05 22:47:27 +0200 |
---|---|---|
committer | Geert Uytterhoeven <geert@linux-m68k.org> | 2021-07-19 12:20:33 +0200 |
commit | 761608f5cf70e8876c2f0e39ca54b516bdcb7c12 (patch) | |
tree | 4dff90e41dc001ebf9dca849ebe228e8d41035bc /arch/m68k/configs/apollo_defconfig | |
parent | m68k: MAC should select HAVE_PATA_PLATFORM (diff) | |
download | linux-761608f5cf70e8876c2f0e39ca54b516bdcb7c12.tar.xz linux-761608f5cf70e8876c2f0e39ca54b516bdcb7c12.zip |
m68k: emu: Fix invalid free in nfeth_cleanup()
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: 9cd7b148312f ("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>
Diffstat (limited to 'arch/m68k/configs/apollo_defconfig')
0 files changed, 0 insertions, 0 deletions