]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Add missing drm_atomic_state_clear to atomic_remove_fb
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 29 Jun 2017 11:59:54 +0000 (13:59 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 3 Jul 2017 08:31:37 +0000 (10:31 +0200)
commitd5a36e0b78311469891efd38758ef6b97af3e13f
tree04a96331b1939bcd92b8622c2dfbfb4b9be79a5c
parent0c058253ee1853c37625ea485866159367ace1ee
drm/atomic: Add missing drm_atomic_state_clear to atomic_remove_fb

All atomic state should be cleared when drm_modeset_backoff() is
called, because it drops all locks and the state becomes invalid.

The call to drm_atomic_state_clear was missing in atomic_remove_fb,
so add the missing call there.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170629115954.26029-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Fixes: fd6f392b1850 ("drm: Convert drm_framebuffer_remove to atomic, v4.")
Cc: stable@vger.kernel.org # v4.12-rc1+
drivers/gpu/drm/drm_framebuffer.c