]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/powerpc/perf/callchain.c
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / arch / powerpc / perf / callchain.c
index f62597dbd757db75ad3e95e574a0aad9f52adc9d..0fc26714780acd95e3df8043c4a764d1e823aefc 100644 (file)
@@ -137,7 +137,7 @@ static int read_user_stack_slow(void __user *ptr, void *buf, int nb)
        offset = addr & ((1UL << shift) - 1);
 
        pte = READ_ONCE(*ptep);
-       if (!pte_present(pte) || !(pte_val(pte) & _PAGE_USER))
+       if (!pte_present(pte) || !pte_user(pte))
                goto err_out;
        pfn = pte_pfn(pte);
        if (!page_is_ram(pfn))