RISC-V: Fix PTRACE_SETREGSET bug.
authorJim Wilson <jimw@sifive.com>
Mon, 11 Jun 2018 21:48:22 +0000 (14:48 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Wed, 4 Jul 2018 21:12:47 +0000 (14:12 -0700)
commit1db9b80980d26fe95c942e0bb8bde2ca715029ad
treee904a546ebe14ff35e6979197cda376adf0b71ff
parent8606544890d7dc4f7a740963f70dc1e1d54f8e30
RISC-V: Fix PTRACE_SETREGSET bug.

In riscv_gpr_set, pass regs instead of &regs to user_regset_copyin to fix
gdb segfault.

Signed-off-by: Jim Wilson <jimw@sifive.com>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/ptrace.c