kernel-fxtec-pro1x/arch/powerpc
Josh Poimboeuf 41c2e949cb powerpc: Fix error path in kernel_thread function
The powerpc 32-bit and 64-bit kernel_thread functions don't properly
propagate errors being returned by the clone syscall.  (In the case of
error, the syscall exit code returns a positive errno in r3 and sets
the CR0[SO] bit.)

This patch fixes that by negating r3 if CR0[SO] is set after the syscall.

Signed-off-by: Josh Poimboeuf <jpoimboe@us.ibm.com>
Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2008-10-10 15:55:18 +11:00
..
boot Merge commit 'jwb/jwb-next' 2008-10-07 11:15:07 +11:00
configs powerpc: Remove CHRP and PMAC support from FSL defconfigs 2008-10-07 14:26:20 +11:00
include/asm Merge commit 'jwb/jwb-next' 2008-10-07 11:15:07 +11:00
kernel powerpc: Fix error path in kernel_thread function 2008-10-10 15:55:18 +11:00
kvm KVM: ppc: fix invalidation of large guest pages 2008-07-27 12:02:05 +03:00
lib powerpc: New copy_4K_page() 2008-09-15 11:07:42 -07:00
math-emu powerpc/math-emu: Use kernel generic math-emu code 2008-10-01 08:40:07 -05:00
mm powerpc: Avoid integer overflow in page_is_ram() 2008-10-07 14:26:18 +11:00
oprofile powerpc/cell/oprofile: Fix test on overlay_tbl_offset in vma_map 2008-10-10 15:55:18 +11:00
platforms powerpc: Oops in pseries_lmb_remove() 2008-10-10 15:55:17 +11:00
sysdev Merge commit 'jwb/jwb-next' 2008-10-07 11:15:07 +11:00
xmon Merge branch 'linux-2.6' 2008-06-30 10:16:50 +10:00
Kconfig powerpc: Enforce sane MAX_ORDER 2008-10-07 14:26:20 +11:00
Kconfig.debug powerpc: Split-out common MSI bitmap logic into msi_bitmap.c 2008-08-20 16:34:57 +10:00
Makefile powerpc: Enforce a non-spe kernel build even on broken compilers 2008-09-15 11:08:41 -07:00