Skip to content

Commit 745cecc

Browse files
Dan Carpenterthierryreding
authored andcommitted
gpu: host1x: returning success instead of -ENOMEM
There is a mistake here so it returns PTR_ERR(NULL) which is success instead of -ENOMEM. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent f5fda67 commit 745cecc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/host1x/job.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,8 @@ static inline int copy_gathers(struct host1x_job *job, struct device *dev)
466466
&job->gather_copy,
467467
GFP_KERNEL);
468468
if (!job->gather_copy_mapped) {
469-
int err = PTR_ERR(job->gather_copy_mapped);
470469
job->gather_copy_mapped = NULL;
471-
return err;
470+
return -ENOMEM;
472471
}
473472

474473
job->gather_copy_size = size;

0 commit comments

Comments
 (0)