diff options
author | Josh Poimboeuf <jpoimboe@us.ibm.com> | 2008-10-07 08:10:03 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-10 06:55:18 +0200 |
commit | 41c2e949cb7b80c5a6247c7df97759953b0f71b5 (patch) | |
tree | c8ba92fa5cd1dc7f6293552704e639135008c343 /drivers/of | |
parent | powerpc/cell/oprofile: Fix test on overlay_tbl_offset in vma_map (diff) | |
download | linux-41c2e949cb7b80c5a6247c7df97759953b0f71b5.tar.xz linux-41c2e949cb7b80c5a6247c7df97759953b0f71b5.zip |
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>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions