Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25c8b5c3 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Dave Airlie
Browse files

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: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent d8af20bc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -145,6 +145,7 @@ exynos_drm_crtc_mode_set(struct drm_crtc *crtc, struct drm_display_mode *mode,

	plane->crtc = crtc;
	plane->fb = crtc->primary->fb;
	drm_framebuffer_reference(plane->fb);

	return 0;
}