aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorJosh Poimboeuf <[email protected]>2008-10-07 06:10:03 +0000
committerBenjamin Herrenschmidt <[email protected]>2008-10-10 15:55:18 +1100
commit41c2e949cb7b80c5a6247c7df97759953b0f71b5 (patch)
treec8ba92fa5cd1dc7f6293552704e639135008c343 /fs/jbd2/commit.c
parent99c840668c23fa81ac642598c792926021329747 (diff)
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 <[email protected]> Signed-off-by: Josh Boyer <[email protected]> Acked-by: Paul Mackerras <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions