Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>

authored by

Dan Carpenter and committed by
Thierry Reding
745cecc0 f5fda676

+1 -2
+1 -2
drivers/gpu/host1x/job.c
··· 466 466 &job->gather_copy, 467 467 GFP_KERNEL); 468 468 if (!job->gather_copy_mapped) { 469 - int err = PTR_ERR(job->gather_copy_mapped); 470 469 job->gather_copy_mapped = NULL; 471 - return err; 470 + return -ENOMEM; 472 471 } 473 472 474 473 job->gather_copy_size = size;