]> git.baikalelectronics.ru Git - kernel.git/commit
drm: make drm_atomic_set_mode_prop_for_crtc() more reliable
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 31 May 2016 12:03:17 +0000 (15:03 +0300)
committerDave Airlie <airlied@redhat.com>
Wed, 1 Jun 2016 04:59:47 +0000 (14:59 +1000)
commit6709887c448d1cff51b52d09763c7b834ea5f0be
treeff788832a78b04beef5f62015846c177bdc78113
parent84e5a795228980adc6bd737765964d7afba7017e
drm: make drm_atomic_set_mode_prop_for_crtc() more reliable

drm_atomic_set_mode_prop_for_crtc() does not clear the state->mode, so
old data may be left there when a new mode is set, possibly causing odd
issues.

This patch improves the situation by always clearing the state->mode
first.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: stable@vger.kernel.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_atomic.c