]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Don't set the plane->fb to NULL on successfull set_plane
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 15 Feb 2013 20:21:37 +0000 (20:21 +0000)
committerRob Clark <robdclark@gmail.com>
Sun, 17 Feb 2013 22:55:31 +0000 (17:55 -0500)
commit9f5c59fab42434c944a3dee3a0454da952e5d5c2
treeee4d6b5274e128ef121928f3f4a76767a9f43942
parent00df998616c706f1de6a877100817e3dc0cf986e
drm: Don't set the plane->fb to NULL on successfull set_plane

We need to clear the local variable to get the refcounting right
(since the reference drm_mode_setplane holds is transferred to the
plane->fb pointer). But should be done _after_ we update the pointer.

Breakage introduced in

commit a521c8c5bb213887b0dbe8632143126650809982
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Dec 11 00:59:24 2012 +0100

    drm: refcounting for sprite framebuffers

Reported-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: Rob Clark <rob@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
drivers/gpu/drm/drm_crtc.c