Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93780
b: refs/heads/master
c: 0aac03f
h: refs/heads/master
v: v3
  • Loading branch information
Andrea Arcangeli authored and Avi Kivity committed Apr 27, 2008
1 parent 5b7838e commit 607387e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 31bb117eb48f2629e030ca547ca89a1c34150183
refs/heads/master: 0aac03f07b37da96e00371e66973d5ffaae578a4
2 changes: 2 additions & 0 deletions trunk/virt/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ int kvm_read_guest_atomic(struct kvm *kvm, gpa_t gpa, void *data,
addr = gfn_to_hva(kvm, gfn);
if (kvm_is_error_hva(addr))
return -EFAULT;
pagefault_disable();
r = __copy_from_user_inatomic(data, (void __user *)addr + offset, len);
pagefault_enable();
if (r)
return -EFAULT;
return 0;
Expand Down

0 comments on commit 607387e

Please sign in to comment.