Files
linux/drivers/gpu/drm/vmwgfx
Rafael Mendonca 53066b1447 drm/vmwgfx: Fix memory leak in vmw_mksstat_add_ioctl()
[ Upstream commit a40c7f61d1 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:38:28 +02:00
..
2021-12-09 13:16:16 -05:00
2021-12-09 13:16:16 -05:00
2021-12-09 13:16:16 -05:00
2022-07-05 21:13:22 +03:00
2022-04-07 12:53:54 +02:00
2021-12-09 13:16:16 -05:00