diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-01-20 13:30:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-02-07 11:08:46 -0800 |
commit | 630127f36784e59e995c206c37825a36a34d346c (patch) | |
tree | d3c01bc8f0aa2ecd06c55475442571fb1f51c1e1 /drivers/staging/android | |
parent | 8b9e418c013e8b671fc10108ab14243f0657bffd (diff) | |
download | blackbird-op-linux-630127f36784e59e995c206c37825a36a34d346c.tar.gz blackbird-op-linux-630127f36784e59e995c206c37825a36a34d346c.zip |
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>
Diffstat (limited to 'drivers/staging/android')
-rw-r--r-- | drivers/staging/android/ion/ion_dummy_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion/ion_dummy_driver.c index df8228b08856..01cdc8aee898 100644 --- a/drivers/staging/android/ion/ion_dummy_driver.c +++ b/drivers/staging/android/ion/ion_dummy_driver.c @@ -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 */ |