Re: [PATCH v2] drm/rocket: Check allocations before use
Triet Hoang <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.comp.video.dri.devel |
|---|---|
| Message-ID | <[email protected]> |
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