[POWERPC] cell: Fix errno for modular spufs_create with invalid neighbour
authorJeremy Kerr <jk@ozlabs.org>
Mon, 13 Aug 2007 03:22:44 +0000 (13:22 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 15 Aug 2007 05:12:44 +0000 (15:12 +1000)
commitad941fe4b6b83999863f49dfba7b3d2cebc4ced5
treee06978ca055eb77b1a7c1a38af25a5d8ce613091
parent28e8351ac22de25034e048c680014ad824323c65
[POWERPC] cell: Fix errno for modular spufs_create with invalid neighbour

At present, spu_create with an invalid neighbo(u)r will return -ENOSYS,
not -EBADF, but only when spufs.o is built as a module.

This change adds the appropriate errno, making the behaviour the same
as the built-in case.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spu_syscalls.c