diff options
author | Rafael Mendonca <[email protected]> | 2022-09-16 17:47:51 -0300 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2022-09-21 12:15:15 -0400 |
commit | a40c7f61d12fbd1e785e59140b9efd57127c0c33 (patch) | |
tree | 569fa09661ff27d0877b20543d7080f62a02b859 /scripts/gdb/linux/cpus.py | |
parent | 110ae8a21bbe779a133c1672a1463105c9d50590 (diff) |
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 'scripts/gdb/linux/cpus.py')
0 files changed, 0 insertions, 0 deletions