Skip to content

Commit

Permalink
drm: guard cursorFB buffer in restoreAfterVT (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma authored Oct 21, 2024
1 parent e6ea0e0 commit 8d732fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/drm/DRM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ void Aquamarine::CDRMBackend::restoreAfterVT() {
if (c->crtc->pendingCursor)
data.cursorFB = c->crtc->pendingCursor;

if (data.cursorFB && data.cursorFB->buffer->dmabuf().modifier == DRM_FORMAT_MOD_INVALID)
if (data.cursorFB && (data.cursorFB->dead || data.cursorFB->buffer->dmabuf().modifier == DRM_FORMAT_MOD_INVALID))
data.cursorFB = nullptr;

backend->log(AQ_LOG_DEBUG,
Expand Down

0 comments on commit 8d732fa

Please sign in to comment.