]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/gem-atomic: Reset plane state to NULL if allocation failed
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 17 Oct 2025 09:19:02 +0000 (11:19 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sun, 26 Oct 2025 16:12:58 +0000 (17:12 +0100)
commit9837f9fcb7eb3f62a49c988c41e2bdadd86de4e2
tree8eeb70481d89d1e824bdbb298efa87f80e9f321f
parent5a5e9c0228e613f0ef2a58b9782d7c0ea8f1e58b
drm/gem-atomic: Reset plane state to NULL if allocation failed

Unconditionally reset plane->state to NULL if the allocation of the
shadow plane state fails. Avoids an invalid address in the field.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://patch.msgid.link/20251017091919.58770-1-tzimmermann@suse.de
drivers/gpu/drm/drm_gem_atomic_helper.c