]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Releasing FBs before releasing GEM objects during drm_release
authorPrathyush <prathyush.k@samsung.com>
Sat, 14 Apr 2012 11:52:13 +0000 (17:22 +0530)
committerDave Airlie <airlied@redhat.com>
Thu, 19 Apr 2012 13:40:41 +0000 (14:40 +0100)
commit84b6b93f99cc2b32c2a21022ead01787c988e110
treee9f67b84304f3fbe4dc54c16251ea21646c0db76
parente72ca91c85d1d07421a364a36fce5b5be138c0b2
drm: Releasing FBs before releasing GEM objects during drm_release

During DRM release, all the FBs and gem objects are released. If
a gem object is being used as a FB and set to a crtc, it must not
be freed before releasing the framebuffer first.

If FBs are released first, the crtc using the FB is disabled first
so now the GEM object can be freed safely. The CRTC will be enabled
again when the driver restores fbdev mode.

Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fops.c