]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/panthor: Fix group_free_queue() for partially initialized queues
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 31 Oct 2025 16:03:18 +0000 (17:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:48 +0000 (14:02 +0100)
commit1ec19ea882841ff9de37d94c7db908af6a3ba325
tree092681a2bfef1c9ed7743626fdfbc5a77b2fbe50
parent1292bd488a816a797c839765ce79f8cb2ef28ea0
drm/panthor: Fix group_free_queue() for partially initialized queues

[ Upstream commit 94a6d20feadbbe24e8a7b1c56394789ea5358fcc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/panthor/panthor_sched.c