diff options
author | 2022-11-20 13:52:58 +0800 | |
---|---|---|
committer | 2022-11-22 20:16:45 -0800 | |
commit | 8110437e59616293228cd781c486d8495a61e36a (patch) | |
tree | cb93c23a895c6fa7cd534fa22c580ba216bc468d /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | net: ethernet: mtk_eth_soc: fix potential memory leak in mtk_rx_alloc() (diff) | |
download | wireguard-linux-8110437e59616293228cd781c486d8495a61e36a.tar.xz wireguard-linux-8110437e59616293228cd781c486d8495a61e36a.zip |
net: ethernet: mtk_eth_soc: fix resource leak in error path
In mtk_probe(), when mtk_ppe_init() or mtk_eth_offload_init() failed,
mtk_mdio_cleanup() isn't called. Fix it.
Fixes: ba37b7caf1ed ("net: ethernet: mtk_eth_soc: add support for initializing the PPE")
Fixes: 502e84e2382d ("net: ethernet: mtk_eth_soc: add flow offloading support")
Signed-off-by: Yan Cangang <nalanzeyu@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions