Thomas Zimmermann c2d3115538 drm/vmwgfx: Don't double-free the mode stored in par->set_mode
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: a278724aa23c ("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>
2019-03-20 07:57:01 +01:00
..
2018-12-25 11:48:26 -08:00
2018-11-22 12:54:38 +10:00
2018-11-28 09:31:07 -08:00
2018-12-25 11:48:26 -08:00
2019-02-10 10:23:06 -02:00
2018-11-20 14:56:18 +01:00
2018-11-29 10:28:49 +10:00
2018-11-20 14:56:18 +01:00
2018-12-25 11:48:26 -08:00
2018-07-13 18:40:28 +02:00
2018-10-04 11:03:34 +10:00
2018-11-30 10:57:18 +01:00