]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/atomic: Make drm_atomic_private_obj_init fallible
authorMaxime Ripard <mripard@kernel.org>
Wed, 28 Jan 2026 12:43:45 +0000 (13:43 +0100)
committerMaxime Ripard <mripard@kernel.org>
Tue, 10 Feb 2026 09:05:23 +0000 (10:05 +0100)
commit95ffa10056b33bf5a90090b02da2edd52e1e281c
treed8170b5d6d17d976839f13980a9bfe26b661e330
parent55c19e27c56d7843afd08634114d510f67f75370
drm/atomic: Make drm_atomic_private_obj_init fallible

Since we're going to move the drm_private_obj state allocation to a
callback, we need to be able to deal with its possible failure.

Make drm_private_obj_init return an error code on failure.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patch.msgid.link/20260128-drm-private-obj-reset-v4-1-90891fa3d3b0@redhat.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/drm_atomic.c
include/drm/drm_atomic.h