From 8079098326bbe9f0034f499d61ec059aac4d8dcb Mon Sep 17 00:00:00 2001 From: vaxerski Date: Tue, 20 Aug 2024 18:44:18 +0200 Subject: [PATCH] drm: fix crash on null crtc setCursor ref #54 --- src/backend/drm/DRM.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 8bb8837..4d8920b 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1619,6 +1619,9 @@ bool Aquamarine::CDRMOutput::setCursor(SP buffer, const Vector2D& hotsp return false; } + if (!connector->crtc) + return false; + if (!buffer) setCursorVisible(false); else {