mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
gpu: ion: Fix deferencing ERR_PTR
Change-Id: I986c380d75591571890f1a2cba1405e66789b25c Signed-off-by: Choi, Jong-Hwan <jhbird.choi@samsung.com>
This commit is contained in:
parent
5a3e147d52
commit
42c5a0740e
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user