]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - kernel/ptrace.c
perf/x86: Fix PMU detection printout when no PMU is detected
[mirror_ubuntu-artful-kernel.git] / kernel / ptrace.c
index a146ee327f6ac15029b64424f0abd07e8d316f67..dd562e9aa2c8419b02067c4883c674989a694cd2 100644 (file)
@@ -236,7 +236,7 @@ static int __ptrace_may_access(struct task_struct *task, unsigned int mode)
         */
        int dumpable = 0;
        /* Don't let security modules deny introspection */
-       if (task == current)
+       if (same_thread_group(task, current))
                return 0;
        rcu_read_lock();
        tcred = __task_cred(task);