projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ea75ae
)
x86: kvm_hv_set_msr(): use __put_user() instead of 32bit __clear_user()
author
Al Viro
<viro@zeniv.linux.org.uk>
Tue, 18 Feb 2020 22:32:46 +0000
(17:32 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Wed, 3 Jun 2020 20:59:35 +0000
(16:59 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/x86/kvm/hyperv.c
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/hyperv.c
b/arch/x86/kvm/hyperv.c
index
bcefa9d
..
b85b211
100644
(file)
--- a/
arch/x86/kvm/hyperv.c
+++ b/
arch/x86/kvm/hyperv.c
@@
-1129,7
+1129,7
@@
static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host)
* only, there can be valuable data in the rest which needs
* to be preserved e.g. on migration.
*/
- if (__
clear_user((void __user *)addr, sizeof(u32)
))
+ if (__
put_user(0, (u32 __user *)addr
))
return 1;
hv_vcpu->hv_vapic = data;
kvm_vcpu_mark_page_dirty(vcpu, gfn);