KVM: Validate userspace_addr of memslot when registered
[linux-2.6.git] / arch / x86 / kvm / paging_tmpl.h
index 88ca456..e3f8141 100644 (file)
@@ -185,7 +185,7 @@ walk:
                }
 
                ptep_user = (pt_element_t __user *)((void *)host_addr + offset);
-               if (unlikely(copy_from_user(&pte, ptep_user, sizeof(pte)))) {
+               if (unlikely(__copy_from_user(&pte, ptep_user, sizeof(pte)))) {
                        present = false;
                        break;
                }