]> Git Repo - linux.git/commitdiff
drm: Fix error path in drm_mode_page_flip_ioctl()
authorImre Deak <[email protected]>
Wed, 7 Sep 2016 17:23:45 +0000 (20:23 +0300)
committerJani Nikula <[email protected]>
Thu, 8 Sep 2016 08:57:13 +0000 (11:57 +0300)
This fixes the error path for platforms that don't define the new
page_flip_target() hook.

Fixes: c229bfbbd04 ("drm: Add page_flip_target CRTC hook v2")
Testcase: igt/kms_flip/basic-flip-vs-dpms
CC: Michel Dänzer <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Michel Dänzer <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_crtc.c

index a33dab27bb0d27a9923ef1812b0a909aab37bae5..631691bae01d7f914844e2eac5b83d26e7e7da64 100644 (file)
@@ -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);
This page took 0.058095 seconds and 4 git commands to generate.