diff options
author | 2022-11-20 13:52:59 +0800 | |
---|---|---|
committer | 2022-11-22 20:16:45 -0800 | |
commit | 603ea5e7ffa73c7fac07d8713d97285990695213 (patch) | |
tree | 445cbcddac0a83d19c0e187ba2fafb6735d2efef /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | net: ethernet: mtk_eth_soc: fix resource leak in error path (diff) | |
download | wireguard-linux-603ea5e7ffa73c7fac07d8713d97285990695213.tar.xz wireguard-linux-603ea5e7ffa73c7fac07d8713d97285990695213.zip |
net: ethernet: mtk_eth_soc: fix memory leak in error path
In mtk_ppe_init(), when dmam_alloc_coherent() or devm_kzalloc() failed,
the rhashtable ppe->l2_flows isn't destroyed. Fix it.
In mtk_probe(), when mtk_ppe_init() or mtk_eth_offload_init() or
register_netdev() failed, have the same problem. Fix it.
Fixes: 33fc42de3327 ("net: ethernet: mtk_eth_soc: support creating mac address based offload entries")
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