diff --git a/src/backends/drm/drm_commit.cpp b/src/backends/drm/drm_commit.cpp index 963e4f9fed..bc2be4f7f9 100644 --- a/src/backends/drm/drm_commit.cpp +++ b/src/backends/drm/drm_commit.cpp @@ -47,6 +47,10 @@ DrmAtomicCommit::DrmAtomicCommit(const QList &pipelines) void DrmAtomicCommit::addProperty(const DrmProperty &prop, uint64_t value) { + if (Q_UNLIKELY(!prop.isValid())) { + qCWarning(KWIN_DRM) << "Trying to add an invalid property" << prop.name(); + return; + } prop.checkValueInRange(value); m_properties[prop.drmObject()->id()][prop.propId()] = value; }