From 29c415a4f5c50bdcd63a73108012481bd9042d1b Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 6 Jul 2024 11:30:47 +0200 Subject: [PATCH] drm: nullcheck output in reset --- src/backend/drm/DRM.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 187b991..c7b4fea 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -261,7 +261,7 @@ void Aquamarine::CDRMBackend::restoreAfterVT() { backend->log(AQ_LOG_ERROR, "drm: failed reset"); for (auto& c : connectors) { - if (!c->crtc) + if (!c->crtc || !c->output) continue; SDRMConnectorCommitData data = {