aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/drm_plane.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c
index 838ca742a28b..fedd4d60d9cd 100644
--- a/drivers/gpu/drm/drm_plane.c
+++ b/drivers/gpu/drm/drm_plane.c
@@ -720,15 +720,15 @@ retry:
720 ret = drm_modeset_lock(&crtc->mutex, &ctx); 720 ret = drm_modeset_lock(&crtc->mutex, &ctx);
721 if (ret) 721 if (ret)
722 goto out; 722 goto out;
723 ret = drm_modeset_lock(&crtc->cursor->mutex, &ctx);
724 if (ret)
725 goto out;
726
727 /* 723 /*
728 * If this crtc has a universal cursor plane, call that plane's update 724 * If this crtc has a universal cursor plane, call that plane's update
729 * handler rather than using legacy cursor handlers. 725 * handler rather than using legacy cursor handlers.
730 */ 726 */
731 if (crtc->cursor) { 727 if (crtc->cursor) {
728 ret = drm_modeset_lock(&crtc->cursor->mutex, &ctx);
729 if (ret)
730 goto out;
731
732 ret = drm_mode_cursor_universal(crtc, req, file_priv, &ctx); 732 ret = drm_mode_cursor_universal(crtc, req, file_priv, &ctx);
733 goto out; 733 goto out;
734 } 734 }