]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Update old_fb after setting a property.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Wed, 24 Jun 2015 06:59:24 +0000 (08:59 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 2 Jul 2015 15:00:49 +0000 (17:00 +0200)
commit655757a0d1fe89936823206777772b75d11daa78
tree72c5bd78e43a0e218d389f54a73171525e0dcc79
parentbf134f887f9326389aef3dfedddddd5c291fb33d
drm/atomic: Update old_fb after setting a property.

This change updates the old_fb pointer only after acquiring the plane lock,
if there are no properties the fb cannot have been changed either, so
this works out correctly.

Found in a discussion with Rob Clark.

Cc: Rob Clark <robdclark@gmail.com>
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_atomic.c