arm64: ptrace: fix compat reg getter/setter return values
authorWill Deacon <will.deacon@arm.com>
Fri, 22 Aug 2014 13:20:24 +0000 (14:20 +0100)
committerWill Deacon <will.deacon@arm.com>
Thu, 28 Aug 2014 19:01:42 +0000 (20:01 +0100)
commit85487edd252fa04718dcd735bc0f41213bbb9546
treeb59a5d4c9ee42f7f60c2f1f0284112fc677429e8
parent27d7ff273c2aad37b28f6ff0cab2cfa35b51e648
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: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/ptrace.c