commit | bd218bce92d3868ba4fe5e9e3eb8199d2aa614af | [log] [tgz] |
---|---|---|
author | Will Deacon <will.deacon@arm.com> | Tue Aug 26 15:13:23 2014 +0100 |
committer | Christoffer Dall <christoffer.dall@linaro.org> | Wed Aug 27 22:49:45 2014 +0200 |
tree | 18c3956239fc631afa20162018c40cf2c97e9f12 | |
parent | 18d457661fb9fa69352822ab98d39331c3d0e571 [diff] |
KVM: ARM/arm64: return -EFAULT if copy_from_user fails in set_timer_reg We currently return the number of bytes not copied if set_timer_reg fails, which is almost certainly not what userspace would like. This patch returns -EFAULT instead. Cc: Christoffer Dall <christoffer.dall@linaro.org> Cc: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>