]> 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 12:54:53 +0000 (13:54 +0100)
commit1ed88300c3330a7291a00c51b848803c348bc4bd
treed09ea952a3b4134e4ae2a5c783daf510817e5072
parent82484ee4f02f0f9b13930633ea063a21ca0933f9
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