drm/exynos: balance framebuffer refcount
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 15 Apr 2014 13:33:01 +0000 (15:33 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 29 Apr 2014 23:48:28 +0000 (09:48 +1000)
commit25c8b5c3048cb6c98d402ca8d4735ccf910f727c
tree31a7fe1abcded36ca269adb54e5229962951c1d7
parentd8af20bcae25e8792ccd8c94404e6e57e7db75f2
drm/exynos: balance framebuffer refcount

exynos_drm_crtc_mode_set assigns primary framebuffer to plane without
taking reference. Then during framebuffer removal it is dereferenced twice,
causing oops. The patch fixes it.

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