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)
committerMark Brown <broonie@kernel.org>
Thu, 22 Jan 2015 21:27:28 +0000 (21:27 +0000)
commitadf5da773504328b2520ecf63f2098eaef982349
tree97d71d4cda69f496985f1376fc374e405f23c3cb
parent2fee2fdbfb9e95f592c6fbfab263d8dc86d5772e
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>
(cherry picked from commit 85487edd252fa04718dcd735bc0f41213bbb9546)
Signed-off-by: Mark Brown <broonie@kernel.org>
arch/arm64/kernel/ptrace.c