aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
diff options
context:
space:
mode:
authorWang Hai <wanghai38@huawei.com>2022-11-20 14:24:38 +0800
committerDavid S. Miller <davem@davemloft.net>2022-11-23 12:41:54 +0000
commit1c40cde6b5171d9c8dfc69be00464fd1c75e210b (patch)
treeda6ef93a602b57e13a5aed53f663812a765fac24 /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
parentMerge tag 'mlx5-fixes-2022-11-21' of git://git.kernel.org/pub/scm/linux/kernel/git/saeed/linux (diff)
downloadwireguard-linux-1c40cde6b5171d9c8dfc69be00464fd1c75e210b.tar.xz
wireguard-linux-1c40cde6b5171d9c8dfc69be00464fd1c75e210b.zip
arcnet: fix potential memory leak in com20020_probe()
In com20020_probe(), if com20020_config() fails, dev and info will not be freed, which will lead to a memory leak. This patch adds freeing dev and info after com20020_config() fails to fix this bug. Compile tested only. Fixes: 15b99ac17295 ("[PATCH] pcmcia: add return value to _config() functions") Signed-off-by: Wang Hai <wanghai38@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions