OSDN Git Service
(root)
/
sagit-ice-cold
/
kernel_xiaomi_msm8998.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5fda67
)
gpu: host1x: returning success instead of -ENOMEM
author
Dan Carpenter
<dan.carpenter@oracle.com>
Fri, 23 Aug 2013 10:19:11 +0000
(13:19 +0300)
committer
Thierry Reding
<treding@nvidia.com>
Tue, 27 Aug 2013 08:20:12 +0000
(10:20 +0200)
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>
drivers/gpu/host1x/job.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/host1x/job.c
b/drivers/gpu/host1x/job.c
index
18a47f9
..
c4e1050
100644
(file)
--- a/
drivers/gpu/host1x/job.c
+++ b/
drivers/gpu/host1x/job.c
@@
-466,9
+466,8
@@
static inline int copy_gathers(struct host1x_job *job, struct device *dev)
&job->gather_copy,
GFP_KERNEL);
if (!job->gather_copy_mapped) {
- int err = PTR_ERR(job->gather_copy_mapped);
job->gather_copy_mapped = NULL;
- return
err
;
+ return
-ENOMEM
;
}
job->gather_copy_size = size;