diff options
Diffstat (limited to 'drivers/gpu/drm/drm_plane.c')
-rw-r--r-- | drivers/gpu/drm/drm_plane.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c index fedd4d60d9cd..5dc8c4350602 100644 --- a/drivers/gpu/drm/drm_plane.c +++ b/drivers/gpu/drm/drm_plane.c | |||
@@ -948,8 +948,6 @@ retry: | |||
948 | } | 948 | } |
949 | 949 | ||
950 | out: | 950 | out: |
951 | if (ret && crtc->funcs->page_flip_target) | ||
952 | drm_crtc_vblank_put(crtc); | ||
953 | if (fb) | 951 | if (fb) |
954 | drm_framebuffer_put(fb); | 952 | drm_framebuffer_put(fb); |
955 | if (crtc->primary->old_fb) | 953 | if (crtc->primary->old_fb) |
@@ -964,5 +962,8 @@ out: | |||
964 | drm_modeset_drop_locks(&ctx); | 962 | drm_modeset_drop_locks(&ctx); |
965 | drm_modeset_acquire_fini(&ctx); | 963 | drm_modeset_acquire_fini(&ctx); |
966 | 964 | ||
965 | if (ret && crtc->funcs->page_flip_target) | ||
966 | drm_crtc_vblank_put(crtc); | ||
967 | |||
967 | return ret; | 968 | return ret; |
968 | } | 969 | } |