diff options
author | Yang Yingliang <[email protected]> | 2022-10-17 11:51:54 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2022-10-17 09:35:05 +0100 |
commit | b3d0d98179d62f9d55635a600679c4fa362baf8d (patch) | |
tree | ef060890a45dbfcdf4ff2211159dfe5d33ea8791 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08 (diff) |
net: ethernet: mtk_eth_soc: fix possible memory leak in mtk_probe()
If mtk_wed_add_hw() has been called, mtk_wed_exit() needs be called
in error path or removing module to free the memory allocated in
mtk_wed_add_hw().
Fixes: 804775dfc288 ("net: ethernet: mtk_eth_soc: add support for Wireless Ethernet Dispatch (WED)")
Signed-off-by: Yang Yingliang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions