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: 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: de8548813824 ("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>

authored by

Boris Brezillon and committed by
Liviu Dudau
bb7939e3 c7ee592d

+2
+2
drivers/gpu/drm/panthor/panthor_sched.c
··· 3418 3418 3419 3419 drm_sched = &queue->scheduler; 3420 3420 ret = drm_sched_entity_init(&queue->entity, 0, &drm_sched, 1, NULL); 3421 + if (ret) 3422 + goto err_free_queue; 3421 3423 3422 3424 return queue; 3423 3425