drm/exynos/fbdev: fix fbdev gem object cleanup
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 9 Sep 2014 13:16:07 +0000 (15:16 +0200)
committerInki Dae <daeinki@gmail.com>
Fri, 19 Sep 2014 15:56:14 +0000 (00:56 +0900)
exynos_gem_obj is used by exynos_drm_fbdev_destroy so it cannot be destroyed
before calling the latter. exynos_gem_obj will be destroyed anyway by
exynos_drm_fbdev_destroy->...->exynos_drm_fb_destroy.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fbdev.c

index cb73e2be34830d6993d70858425adb0af2e556ff..e12ea90c62371e6212fba19623c1b2034545c2f4 100644 (file)
@@ -354,9 +354,6 @@ void exynos_drm_fbdev_fini(struct drm_device *dev)
 
        fbdev = to_exynos_fbdev(private->fb_helper);
 
-       if (fbdev->exynos_gem_obj)
-               exynos_drm_gem_destroy(fbdev->exynos_gem_obj);
-
        exynos_drm_fbdev_destroy(dev, private->fb_helper);
        kfree(fbdev);
        private->fb_helper = NULL;