Skip to content

Commit

Permalink
drm: fix crash on null crtc setCursor
Browse files Browse the repository at this point in the history
ref #54
  • Loading branch information
vaxerski committed Aug 20, 2024
1 parent 00d51a0 commit 8079098
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,9 @@ bool Aquamarine::CDRMOutput::setCursor(SP<IBuffer> buffer, const Vector2D& hotsp
return false;
}

if (!connector->crtc)
return false;

if (!buffer)
setCursorVisible(false);
else {
Expand Down

0 comments on commit 8079098

Please sign in to comment.