aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorYan Cangang <nalanzeyu@gmail.com>2022-11-20 13:52:59 +0800
committerJakub Kicinski <kuba@kernel.org>2022-11-22 20:16:45 -0800
commit603ea5e7ffa73c7fac07d8713d97285990695213 (patch)
tree445cbcddac0a83d19c0e187ba2fafb6735d2efef /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentnet: ethernet: mtk_eth_soc: fix resource leak in error path (diff)
downloadwireguard-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