linux_dsm_epyc7002/arch/powerpc/platforms/cell/spufs
Michael Ellerman 99acc9bede powerpc/spufs: Fix coredump of SPU contexts
If a process dumps core while it has SPU contexts active then we have
code to also dump information about the SPU contexts.

Unfortunately it's been broken for 3 1/2 years, and we didn't notice. In
commit 7b1f4020d0 ("spufs: get rid of dump_emit() wrappers") the nread
variable was removed and rc used instead. That means when the loop exits
successfully, rc has the number of bytes read, but it's then used as the
return value for the function, which should return 0 on success.

So fix it by setting rc = 0 before returning in the success case.

Fixes: 7b1f4020d0 ("spufs: get rid of dump_emit() wrappers")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2017-06-01 19:54:40 +10:00
..
.gitignore
backing_ops.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
context.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/mm.h> 2017-03-02 08:42:28 +01:00
coredump.c powerpc/spufs: Fix coredump of SPU contexts 2017-06-01 19:54:40 +10:00
fault.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/signal.h> 2017-03-02 08:42:29 +01:00
file.c powerpc updates for 4.11 part 2 2017-03-01 10:10:16 -08:00
gang.c
hw_ops.c powerpc: remove non-required uses of include <linux/module.h> 2011-10-31 19:30:44 -04:00
inode.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
lscsa_alloc.c powerpc/cell: Drop support for 64K local store on 4K kernels 2015-08-18 19:29:49 +10:00
Makefile powerpc/cell: Fix compilation with CONFIG_COREDUMP=n 2014-07-11 12:55:05 +10:00
run.c powerpc: Various typo fixes 2016-06-14 13:58:26 +10:00
sched.c sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
spu_restore_crt0.S
spu_restore_dump.h_shipped
spu_restore.c Fix common misspellings 2011-03-31 11:26:23 -03:00
spu_save_crt0.S
spu_save_dump.h_shipped
spu_save.c
spu_utils.h
spufs.h sched/headers: Prepare to move signal wakeup & sigpending methods from <linux/sched.h> into <linux/sched/signal.h> 2017-03-02 08:42:32 +01:00
sputrace.h
switch.c powerpc: various straight conversions from module.h --> export.h 2011-10-31 19:30:44 -04:00
syscalls.c Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00