Skip to content
Commit 85487edd authored by Will Deacon's avatar Will Deacon
Browse files

arm64: ptrace: fix compat reg getter/setter return values



copy_{to,from}_user return the number of bytes remaining on failure, not
an error code.

This patch returns -EFAULT when the copy operation didn't complete,
rather than expose the number of bytes not copied directly to userspace.

Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 27d7ff27
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