mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
drm/amdgpu: add check for callback
it is possible that the callback isn't defined sometimes. Signed-off-by: Chunming Zhou <david1.zhou@amd.com> Reviewed-by: Christian K?nig <christian.koenig@amd.com>
This commit is contained in:
parent
02b9f0bfd4
commit
afe1008149
1 changed files with 2 additions and 1 deletions
|
|
@ -137,7 +137,8 @@ static void amdgpu_job_work_func(struct work_struct *work)
|
|||
container_of(work, struct amdgpu_cs_parser,
|
||||
job_work);
|
||||
mutex_lock(&sched_job->job_lock);
|
||||
sched_job->free_job(sched_job);
|
||||
if (sched_job->free_job)
|
||||
sched_job->free_job(sched_job);
|
||||
mutex_unlock(&sched_job->job_lock);
|
||||
/* after processing job, free memory */
|
||||
kfree(sched_job);
|
||||
|
|
|
|||
Loading…
Reference in a new issue