Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 630127f3 authored by Dan Carpenter's avatar Dan Carpenter Committed by Greg Kroah-Hartman
Browse files

staging: android: ion: dummy: fix an error code



We should be returning -ENOMEM here instead of zero.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8b9e418c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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 */