Skip to content

Commit

Permalink
staging: android: ion: dummy: fix an error code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Greg Kroah-Hartman committed Feb 7, 2014
1 parent 8b9e418 commit 630127f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/android/ion/ion_dummy_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ static int __init ion_dummy_init(void)
heaps = kzalloc(sizeof(struct ion_heap *) * dummy_ion_pdata.nr,
GFP_KERNEL);
if (!heaps)
return PTR_ERR(heaps);
return -ENOMEM;


/* Allocate a dummy carveout heap */
Expand Down

0 comments on commit 630127f

Please sign in to comment.