Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afe10081 authored by Chunming Zhou's avatar Chunming Zhou Committed by Alex Deucher
Browse files

drm/amdgpu: add check for callback



it is possible that the callback isn't defined sometimes.

Signed-off-by: default avatarChunming Zhou <david1.zhou@amd.com>
Reviewed-by: default avatarChristian K?nig <christian.koenig@amd.com>
parent 02b9f0bf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -137,6 +137,7 @@ 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);
	if (sched_job->free_job)
		sched_job->free_job(sched_job);
	mutex_unlock(&sched_job->job_lock);
	/* after processing job, free memory */