drm/log: Add free callback
authorThomas Zimmermann <tzimmermann@suse.de>
Thu, 9 Oct 2025 13:16:30 +0000 (15:16 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Fri, 24 Oct 2025 06:45:37 +0000 (08:45 +0200)
commit52a023391662f5910077b1a9043b5b5f4d2f9b7b
tree2117512d6b57a94a0195728765e04efc9c89ea5c
parent33ba21e9e1baac2c1b2d4a01d7529daf1c7ce344
drm/log: Add free callback

Free the client memory in the client free callback. Also move the
debugging output into the free callback: drm_client_release() puts
the reference on the DRM device, so pointers to the device should
be considered dangling afterwards.

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