linux_dsm_epyc7002/arch/powerpc/platforms/cell
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
..
spufs powerpc/spufs: Fix coredump of SPU contexts 2017-06-01 19:54:40 +10:00
axon_msi.c powerpc: Create asm/debugfs.h and move powerpc_debugfs_root there 2017-04-11 07:46:03 +10:00
cbe_powerbutton.c
cbe_regs.c powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
cbe_thermal.c
cell.h
cpufreq_spudemand.c sched/headers: Prepare for new header dependencies before moving code to <linux/sched/loadavg.h> 2017-03-02 08:42:27 +01:00
interrupt.c powerpc: Add NMI IPI infrastructure 2017-04-28 21:02:25 +10:00
interrupt.h
iommu.c treewide: Move dma_ops from struct dev_archdata into struct device 2017-01-24 12:23:35 -05:00
Kconfig powerpc: Make selects of IBM_EMAC_* depend on IBM_EMAC 2016-12-01 22:07:16 +11:00
Makefile powerpc/cell: Remove the Cell QPACE code 2015-12-14 20:41:50 +11:00
pervasive.c powerpc/cbe: Do not process external or decremeter interrupts from sreset 2017-04-28 21:02:25 +10:00
pervasive.h
pmu.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
ras.c powerpc/sparse: Make a bunch of things static 2016-09-13 17:35:47 +10:00
ras.h
setup.c powerpc/64: Move 64-bit probe_machine() to later in the boot process 2016-07-21 18:59:22 +10:00
smp.c
spider-pci.c
spider-pic.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
spu_base.c powerpc/spufs: Fix hash faults for kernel regions 2017-05-25 23:07:44 +10:00
spu_callbacks.c
spu_manage.c powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
spu_notify.c
spu_priv1_mmio.c
spu_priv1_mmio.h
spu_syscalls.c