mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-23 00:55:48 -04:00
drm/panthor: Handle errors returned by drm_sched_entity_init()
In practice it's not going to fail because we're passing the current
sanity checks done by drm_sched_entity_init(), and that's the only
reason it would return an error, but better safe than sorry.
Fixes: de85488138 ("drm/panthor: Add the scheduler logical block")
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patch.msgid.link/20251031160318.832427-1-boris.brezillon@collabora.com
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
This commit is contained in:
committed by
Liviu Dudau
parent
c7ee592dcc
commit
bb7939e332
@@ -3418,6 +3418,8 @@ group_create_queue(struct panthor_group *group,
|
||||
|
||||
drm_sched = &queue->scheduler;
|
||||
ret = drm_sched_entity_init(&queue->entity, 0, &drm_sched, 1, NULL);
|
||||
if (ret)
|
||||
goto err_free_queue;
|
||||
|
||||
return queue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user