Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[PATCH] powerpc: check Cell SPU syscall number range _before_ using it

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Paul Mackerras <paulus@samba.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

David Woodhouse and committed by
Linus Torvalds
b471f554 5a4fa163

+2 -2
+2 -2
arch/powerpc/platforms/cell/spu_callbacks.c
··· 339 339 { 340 340 long (*syscall)(u64 a1, u64 a2, u64 a3, u64 a4, u64 a5, u64 a6); 341 341 342 - syscall = spu_syscall_table[s->nr_ret]; 343 - 344 342 if (s->nr_ret >= ARRAY_SIZE(spu_syscall_table)) { 345 343 pr_debug("%s: invalid syscall #%ld", __FUNCTION__, s->nr_ret); 346 344 return -ENOSYS; 347 345 } 346 + 347 + syscall = spu_syscall_table[s->nr_ret]; 348 348 349 349 #ifdef DEBUG 350 350 print_symbol(KERN_DEBUG "SPU-syscall %s:", (unsigned long)syscall);