mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
arm64: get rid of copy_regset_to_user() in compat_ptrace_read_user()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a96dacf988
commit
b44f384074
@ -1541,9 +1541,7 @@ static int compat_ptrace_read_user(struct task_struct *tsk, compat_ulong_t off,
|
|||||||
else if (off == COMPAT_PT_TEXT_END_ADDR)
|
else if (off == COMPAT_PT_TEXT_END_ADDR)
|
||||||
tmp = tsk->mm->end_code;
|
tmp = tsk->mm->end_code;
|
||||||
else if (off < sizeof(compat_elf_gregset_t))
|
else if (off < sizeof(compat_elf_gregset_t))
|
||||||
return copy_regset_to_user(tsk, &user_aarch32_view,
|
tmp = compat_get_user_reg(tsk, off >> 2);
|
||||||
REGSET_COMPAT_GPR, off,
|
|
||||||
sizeof(compat_ulong_t), ret);
|
|
||||||
else if (off >= COMPAT_USER_SZ)
|
else if (off >= COMPAT_USER_SZ)
|
||||||
return -EIO;
|
return -EIO;
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user