Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/panthor: Fix group_free_queue() for partially initialized queues

group_free_queue() can be called on a partially initialized queue
object if something fails in group_create_queue(). Make sure we don't
call drm_sched_entity_destroy() on an entity that hasn't been
initialized.

Fixes: 7d9c3442b02a ("drm/panthor: Defer scheduler entitiy destruction to queue release")
Reviewed-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patch.msgid.link/20251031160318.832427-2-boris.brezillon@collabora.com
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>

authored by

Boris Brezillon and committed by
Liviu Dudau
94a6d20f bb7939e3

+2 -1
+2 -1
drivers/gpu/drm/panthor/panthor_sched.c
··· 899 899 if (IS_ERR_OR_NULL(queue)) 900 900 return; 901 901 902 - drm_sched_entity_destroy(&queue->entity); 902 + if (queue->entity.fence_context) 903 + drm_sched_entity_destroy(&queue->entity); 903 904 904 905 if (queue->scheduler.ops) 905 906 drm_sched_fini(&queue->scheduler);