android_kernel_oneplus_msm8998/drivers/gpu
Thomas Zimmermann 8b12fd7c5f drm/vmwgfx: Don't double-free the mode stored in par->set_mode
commit c2d311553855395764e2e5bf401d987ba65c2056 upstream.

When calling vmw_fb_set_par(), the mode stored in par->set_mode gets free'd
twice. The first free is in vmw_fb_kms_detach(), the second is near the
end of vmw_fb_set_par() under the name of 'old_mode'. The mode-setting code
only works correctly if the mode doesn't actually change. Removing
'old_mode' in favor of using par->set_mode directly fixes the problem.

Cc: <stable@vger.kernel.org>
Fixes: a278724aa2 ("drm/vmwgfx: Implement fbdev on kms v2")
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-03 06:23:14 +02:00
..
drm drm/vmwgfx: Don't double-free the mode stored in par->set_mode 2019-04-03 06:23:14 +02:00
host1x gpu: host1x: fix error return code in host1x_probe() 2018-11-10 07:41:39 -08:00
ipu-v3 gpu: ipu-v3: Fix CSI offsets for imx53 2019-03-23 08:44:32 +01:00
vga vgaarb: fix signal handling in vga_get() 2015-12-11 14:04:44 +10:00
Makefile