]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/client: Do not free client memory by default
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 9 Oct 2025 13:16:31 +0000 (15:16 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 24 Oct 2025 06:45:37 +0000 (08:45 +0200)
commit57fe8285dc4764171fa9eb1f153cae3bb313d6fc
tree3dfca35848636968fae207d0178f9b8868f2f05a
parent52a023391662f5910077b1a9043b5b5f4d2f9b7b
drm/client: Do not free client memory by default

Make no assumption on the allocation of the client's memory. For
example, amdgpu stores a client within another data structures,
where it cannot be freed by itself.

The correct place to free the client's memory is the client's free
callback. All existing clients implement this.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Jocelyn Falempe <jfalempe@redhat.com>
Link: https://lore.kernel.org/r/20251009132006.45834-5-tzimmermann@suse.de
drivers/gpu/drm/drm_client_event.c