Re: [PATCH] powerpc/spufs: Fix coredump of SPU contexts

2017-05-29 Thread Jeremy Kerr
Hi Michael, > So fix it by setting rc = 0 before returning in the success case. > > Fixes: 7b1f4020d0d1 ("spufs: get rid of dump_emit() wrappers") > Signed-off-by: Michael Ellerman Looks good to me, thanks. Acked-by: Jeremy Kerr Cheers, Jeremy

[PATCH] powerpc/spufs: Fix coredump of SPU contexts

2017-05-29 Thread Michael Ellerman
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 7b1f4020d0d1 ("spufs: get rid of dump_emit() wrappers") the nread variable was removed and rc