drm: fix crash on null crtc setCursor

ref #54
This commit is contained in:
Vaxry 2024-08-20 18:44:18 +02:00
parent 00d51a053c
commit 8079098326

View file

@ -1619,6 +1619,9 @@ bool Aquamarine::CDRMOutput::setCursor(SP<IBuffer> buffer, const Vector2D& hotsp
return false; return false;
} }
if (!connector->crtc)
return false;
if (!buffer) if (!buffer)
setCursorVisible(false); setCursorVisible(false);
else { else {