maccess: rename probe_user_{read,write} to copy_{from,to}_user_nofault
[sfrench/cifs-2.6.git] / arch / powerpc / perf / core-book3s.c
index efe97ff82557d08bca1140865fe93cc4643b8af7..cd6a742ac6ef5d5f7a7a175cdfe7a66cd7cf04ee 100644 (file)
@@ -426,7 +426,8 @@ static __u64 power_pmu_bhrb_to(u64 addr)
        }
 
        /* Userspace: need copy instruction here then translate it */
-       if (probe_user_read(&instr, (unsigned int __user *)addr, sizeof(instr)))
+       if (copy_from_user_nofault(&instr, (unsigned int __user *)addr,
+                       sizeof(instr)))
                return 0;
 
        target = branch_target((struct ppc_inst *)&instr);