linux-stable/drivers/gpu/drm/vmwgfx
Rafael Mendonca a40c7f61d1 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: 7a7a933edd ("drm/vmwgfx: Introduce VMware mks-guest-stats")
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Signed-off-by: Zack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220916204751.720716-1-rafaelmendsr@gmail.com
2022-09-21 12:15:15 -04:00
..
device_include drm/vmwgfx: cleanup comments 2022-08-04 11:30:46 -04:00
Kconfig
Makefile
ttm_object.c
ttm_object.h drm/vmwgfx: cleanup comments 2022-08-04 11:30:46 -04:00
vmw_surface_cache.h
vmwgfx_binding.c
vmwgfx_binding.h
vmwgfx_blit.c
vmwgfx_bo.c drm/vmwgfx: cleanup comments 2022-08-04 11:30:46 -04:00
vmwgfx_cmd.c
vmwgfx_cmdbuf.c
vmwgfx_cmdbuf_res.c drm/vmwgfx: cleanup comments 2022-08-04 11:30:46 -04:00
vmwgfx_context.c
vmwgfx_cotable.c
vmwgfx_devcaps.c
vmwgfx_devcaps.h
vmwgfx_drv.c drm/vmwgfx: Remove unused hugepage support 2022-08-04 11:39:26 -04:00
vmwgfx_drv.h drm/vmwgfx: remove unused vmw_bo_is_vmw_bo() declaration 2022-09-13 14:52:02 -04:00
vmwgfx_execbuf.c drm/vmwgfx: clean up some error pointer checking 2022-08-04 11:27:50 -04:00
vmwgfx_fb.c drm: Remove linux/fb.h from drm_crtc.h 2022-07-05 21:14:02 +03:00
vmwgfx_fence.c
vmwgfx_fence.h
vmwgfx_gem.c
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c
vmwgfx_hashtab.c
vmwgfx_hashtab.h
vmwgfx_ioctl.c
vmwgfx_irq.c
vmwgfx_kms.c drm/atomic-helper: Remove _HELPER_ infix from DRM_PLANE_HELPER_NO_SCALING 2022-07-26 18:42:00 +02:00
vmwgfx_kms.h drm/vmwgfx: cleanup comments 2022-08-04 11:30:46 -04:00
vmwgfx_ldu.c drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
vmwgfx_mksstat.h
vmwgfx_mob.c
vmwgfx_msg.c drm/vmwgfx: Fix memory leak in vmw_mksstat_add_ioctl() 2022-09-21 12:15:15 -04:00
vmwgfx_msg_arm64.h
vmwgfx_msg_x86.h
vmwgfx_overlay.c
vmwgfx_page_dirty.c
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/vmwgfx: cleanup comments 2022-08-04 11:30:46 -04:00
vmwgfx_resource_priv.h
vmwgfx_scrn.c drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
vmwgfx_shader.c
vmwgfx_simple_resource.c drm/vmwgfx: cleanup comments 2022-08-04 11:30:46 -04:00
vmwgfx_so.c
vmwgfx_so.h
vmwgfx_stdu.c drm: Remove unnecessary include statements of drm_plane_helper.h 2022-07-26 18:42:04 +02:00
vmwgfx_streamoutput.c
vmwgfx_surface.c
vmwgfx_system_manager.c
vmwgfx_ttm_buffer.c
vmwgfx_ttm_glue.c
vmwgfx_va.c
vmwgfx_validation.c
vmwgfx_validation.h