Skip to content
Commit 3eeacd9f authored by Michael Ellerman's avatar Michael Ellerman
Browse files

powerpc/ptrace: Don't use sizeof(struct pt_regs) in ptrace code



Now that we've split the user & kernel versions of pt_regs we need to
be more careful in the ptrace code.

For now we've ensured the location of the fields in both structs is
the same, so most of the ptrace code doesn't need updating.

But there are a few places where we use sizeof(pt_regs), and these
will be wrong as soon as we increase the size of the kernel structure.

So flip them all to use sizeof(user_pt_regs).

Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 002af939
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment