summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-05-29 13:26:07 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2017-06-01 12:54:40 +0300
commit99acc9bede06bbb2662aafff51f5b9e529fa845e (patch)
tree4c8ee57d363423843dbe5d4ffd2057f711a8ebed /.gitignore
parenta2b05b7aa60e1e9b60faf01dfb1cca35638d1ab1 (diff)
downloadlinux-99acc9bede06bbb2662aafff51f5b9e529fa845e.tar.xz
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 7b1f4020d0d1 ("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: 7b1f4020d0d1 ("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>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions