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>
This commit is contained in:
Maxime Ripard 2026-01-28 13:43:45 +01:00
commit 95ffa10056
No known key found for this signature in database
GPG key ID: 275FCE19A23DBE76
2 changed files with 13 additions and 9 deletions