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

Commit dec90ea1 authored by Imre Deak's avatar Imre Deak Committed by Jani Nikula
Browse files

drm: Fix error path in drm_mode_page_flip_ioctl()



This fixes the error path for platforms that don't define the new
page_flip_target() hook.

Fixes: c229bfbb ("drm: Add page_flip_target CRTC hook v2")
Testcase: igt/kms_flip/basic-flip-vs-dpms
CC: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarImre Deak <imre.deak@intel.com>
Reviewed-by: default avatarMichel Dänzer <michel.daenzer@amd.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1473269025-16148-1-git-send-email-imre.deak@intel.com
parent 30c06570
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2044,7 +2044,7 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,
	}

out:
	if (ret)
	if (ret && crtc->funcs->page_flip_target)
		drm_crtc_vblank_put(crtc);
	if (fb)
		drm_framebuffer_unreference(fb);