staging: android: ion: dummy: fix an error code
We should be returning -ENOMEM here instead of zero. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8b9e418c01
commit
630127f367
@ -71,7 +71,7 @@ static int __init ion_dummy_init(void)
|
|||||||
heaps = kzalloc(sizeof(struct ion_heap *) * dummy_ion_pdata.nr,
|
heaps = kzalloc(sizeof(struct ion_heap *) * dummy_ion_pdata.nr,
|
||||||
GFP_KERNEL);
|
GFP_KERNEL);
|
||||||
if (!heaps)
|
if (!heaps)
|
||||||
return PTR_ERR(heaps);
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
||||||
/* Allocate a dummy carveout heap */
|
/* Allocate a dummy carveout heap */
|
||||||
|
Loading…
Reference in New Issue
Block a user