powerpc/cell: Add missing error code in spufs_mkgang()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Aug 2016 05:37:03 +0000 (08:37 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 Aug 2016 04:50:18 +0000 (14:50 +1000)
commit54a94fcf2f00c9deb9491d5ab2b5a4022332f47e
treea68386b012d1e9b3f8cdd7e8342648710b6be8e4
parent880a3d6afd068682d6386a0528be1217541d3d8e
powerpc/cell: Add missing error code in spufs_mkgang()

We should return -ENOMEM if alloc_spu_gang() fails.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/cell/spufs/inode.c