On 11/20/2026 5:14 AM, Ville Syrjala wrote:
From: Ville Syrjälä <[email protected]>

drm_atomic_get_colorop_state() didn't get the memo on
commit 0a0e79a2d9ed ("drm/atomic: WARN about invalid
drm_foo_get_state() usage"). Add the missing warning.


LGTM
Reviewed-by: Chaitanya Kumar Borah <[email protected]>

Signed-off-by: Ville Syrjälä <[email protected]>
---
  drivers/gpu/drm/drm_atomic.c | 1 +
  1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index 81591173265d..b0843e5a9e4d 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -742,6 +742,7 @@ drm_atomic_get_colorop_state(struct drm_atomic_commit 
*state,
        struct drm_colorop_state *colorop_state;
WARN_ON(!state->acquire_ctx);
+       drm_WARN_ON(state->dev, state->checked);
colorop_state = drm_atomic_get_new_colorop_state(state, colorop);
        if (colorop_state)

Reply via email to