From d66b9966e9a7e5e48d07f55c2fe64b11d1d1d7a1 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 27 May 2020 17:51:51 +0200 Subject: [PATCH] backend/drm: fix missing crtc->cursor NULL check Fixes: cdb6fdbc6cb7 ("backend/drm: remove missing cursor plane workaround") --- backend/drm/drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 8dc83cd3..d1abe773 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -977,6 +977,9 @@ static bool drm_connector_move_cursor(struct wlr_output *output, return false; } struct wlr_drm_plane *plane = conn->crtc->cursor; + if (!plane) { + return false; + } struct wlr_box box = { .x = x, .y = y };