-
由 Rafael Mendonca 提交于
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: 7a7a933e ("drm/vmwgfx: Introduce VMware mks-guest-stats") Signed-off-by: NRafael Mendonca <rafaelmendsr@gmail.com> Reviewed-by: NMartin Krastev <krastevm@vmware.com> Signed-off-by: NZack Rusin <zackr@vmware.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220916204751.720716-1-rafaelmendsr@gmail.com
a40c7f61