projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a3e147
)
gpu: ion: Fix deferencing ERR_PTR
author
Choi, Jong-Hwan
<jhbird.choi@samsung.com>
Thu, 7 Jul 2011 00:07:04 +0000
(09:07 +0900)
committer
Rebecca Schultz Zavin
<rebecca@android.com>
Thu, 7 Jul 2011 01:16:57 +0000
(18:16 -0700)
Change-Id: I986c380d75591571890f1a2cba1405e66789b25c
Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
drivers/gpu/ion/ion_heap.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/ion/ion_heap.c
b/drivers/gpu/ion/ion_heap.c
index 7c93577c9b3c3fab468af94a6e618270f3c2c97d..8ce3c1907badca3c695b905831555b860cbf4420 100644
(file)
--- a/
drivers/gpu/ion/ion_heap.c
+++ b/
drivers/gpu/ion/ion_heap.c
@@
-37,10
+37,13
@@
struct ion_heap *ion_heap_create(struct ion_platform_heap *heap_data)
heap_data->type);
return ERR_PTR(-EINVAL);
}
- if (IS_ERR_OR_NULL(heap))
+
+ if (IS_ERR_OR_NULL(heap)) {
pr_err("%s: error creating heap %s type %d base %lu size %u\n",
__func__, heap_data->name, heap_data->type,
heap_data->base, heap_data->size);
+ return ERR_PTR(-EINVAL);
+ }
heap->name = heap_data->name;
heap->id = heap_data->id;