]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/x86/xen/enlighten.c
Merge branch 'for-4.8/core' of git://git.kernel.dk/linux-block
[karo-tx-linux.git] / arch / x86 / xen / enlighten.c
index 760789ae8562af21932adc93e56dca10717915ab..0f87db2cc6a88fa765718a91219352832b63fc11 100644 (file)
@@ -521,9 +521,7 @@ static void set_aliased_prot(void *v, pgprot_t prot)
 
        preempt_disable();
 
-       pagefault_disable();    /* Avoid warnings due to being atomic. */
-       __get_user(dummy, (unsigned char __user __force *)v);
-       pagefault_enable();
+       probe_kernel_read(&dummy, v, 1);
 
        if (HYPERVISOR_update_va_mapping((unsigned long)v, pte, 0))
                BUG();