Files
kernel/include/linux
Oleg Nesterov 640586f8af powerpc/ptrace: Simplify gpr_get()/tm_cgpr_get()
gpr_get() does membuf_write() twice to override pt_regs->msr in
between. We can call membuf_write() once and change ->msr in the
kernel buffer, this simplifies the code and the next fix.

The patch adds a new simple helper, membuf_at(offs), it returns the
new membuf which can be safely used after membuf_write().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
[mpe: Fixup some minor whitespace issues noticed by Christophe]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201119160221.GA5188@redhat.com
2020-11-26 22:05:42 +11:00
..
2020-10-12 10:06:39 +02:00
2020-10-28 13:18:56 +01:00
2020-10-02 14:59:25 -07:00
2020-09-21 15:00:40 -07:00
2020-10-02 15:00:49 -07:00
2020-10-16 17:21:51 +02:00
2020-09-30 22:44:26 +02:00
2020-09-16 08:54:53 -05:00
2020-10-28 13:42:36 -04:00
2020-10-13 18:38:32 -07:00
2020-09-23 18:02:49 -07:00
2020-10-18 09:27:09 -07:00
2020-10-07 14:28:39 -04:00
2020-09-24 19:49:36 -07:00
2020-09-23 18:02:49 -07:00
2020-10-18 09:27:10 -07:00
2020-09-26 22:55:05 -04:00
2020-09-10 14:03:31 -07:00
2020-10-18 09:27:10 -07:00
2020-10-05 13:21:49 +02:00