aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
diff options
context:
space:
mode:
authorRafael Mendonca <[email protected]>2022-09-16 20:47:51 +0000
committerZack Rusin <[email protected]>2022-09-21 16:15:15 +0000
commita40c7f61d12fbd1e785e59140b9efd57127c0c33 (patch)
tree569fa09661ff27d0877b20543d7080f62a02b859 /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
parentdrm: bridge/dw-hdmi-ahb-audio: use strscpy() is more robust and safer (diff)
downloadkernel-a40c7f61d12fbd1e785e59140b9efd57127c0c33.tar.gz
kernel-a40c7f61d12fbd1e785e59140b9efd57127c0c33.zip
drm/vmwgfx: Fix memory leak in vmw_mksstat_add_ioctl()
If the copy of the description string from userspace fails, then the page for the instance descriptor doesn't get freed before returning -EFAULT, which leads to a memleak. Fixes: 7a7a933edd6c ("drm/vmwgfx: Introduce VMware mks-guest-stats") Signed-off-by: Rafael Mendonca <[email protected]> Reviewed-by: Martin Krastev <[email protected]> Signed-off-by: Zack Rusin <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions