From: Eugeniy Paltsev Date: Fri, 30 Jun 2017 13:14:14 +0000 (+0300) Subject: arc: fix wrong access to "sp" member in user_regs_struct X-Git-Tag: v4.18~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=373ff8cc4f91594ccd0f2ae1a68251524dd40d15;p=strace arc: fix wrong access to "sp" member in user_regs_struct "sp" register is a member of "scratch" structure (which is nested in user_regs_struct) * linux/arc/arch_regs.c: Replace .sp with .scratch.sp . Fixes: v4.16-31-g134042a5 ("arc: export arc_sp_ptr") Signed-off-by: Eugeniy Paltsev Signed-off-by: Dmitry V. Levin --- diff --git a/linux/arc/arch_regs.c b/linux/arc/arch_regs.c index 9a5c2dfc..88bb7998 100644 --- a/linux/arc/arch_regs.c +++ b/linux/arc/arch_regs.c @@ -1,4 +1,4 @@ static struct user_regs_struct arc_regs; -unsigned long *const arc_sp_ptr = &arc_regs.sp; +unsigned long *const arc_sp_ptr = &arc_regs.scratch.sp; #define ARCH_REGS_FOR_GETREGSET arc_regs #define ARCH_PC_REG arc_regs.efa