Re: [PATCH v2] drm/rocket: Check allocations before use

From: Triet Hoang

Date: Mon Aug 17 2026 - 10:55:14 EST


Hi Igor,

After reading the code carefully, I think that we can check
if entity->sched_list is NULL or not, then we can free the array
that rocket_job_open() allocated.

This will look like
if (WARN_ON(ret) || !(&rocket_priv->sched_entity->sched_list))
kfree(scheds);

How do you think about that

Best Regards,
Triet