Skip to content

Commit

Permalink
drm/panfrost: Make ->run_job() return an ERR_PTR() when appropriate
Browse files Browse the repository at this point in the history
If the fence creation fail, we can return the error pointer directly.
The core will update the fence error accordingly.

Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
bbrezillon committed Jul 1, 2021
1 parent 78efe21 commit 9f4e911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/panfrost/panfrost_job.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static struct dma_fence *panfrost_job_run(struct drm_sched_job *sched_job)

fence = panfrost_fence_create(pfdev, slot);
if (IS_ERR(fence))
return NULL;
return fence;

if (job->done_fence)
dma_fence_put(job->done_fence);
Expand Down

0 comments on commit 9f4e911

Please sign in to comment.