]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit7073094c693c2d936113d69aa8e50b3ba3f1135f
treee06978ca055eb77b1a7c1a38af25a5d8ce613091
parentc08fe3bf7d3e280386ce686873e0171b223e11ab
[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