diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-07-16 22:10:27 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-07-16 22:10:27 +0200 |
commit | d14aef3872bd25af5355a10ad5235556ac83fcfd (patch) | |
tree | fad09e5947a90c8613deca5ced460406cf7f24ee /kernel/events | |
parent | Merge tag 'sound-3.16-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/t... (diff) | |
parent | perf: Do not allow optimized switch for non-cloned events (diff) | |
download | linux-d14aef3872bd25af5355a10ad5235556ac83fcfd.tar.xz linux-d14aef3872bd25af5355a10ad5235556ac83fcfd.zip |
Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull perf fixes from Ingo Molnar:
"Tooling fixes and an Intel PMU driver fixlet"
* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf: Do not allow optimized switch for non-cloned events
perf/x86/intel: ignore CondChgd bit to avoid false NMI handling
perf symbols: Get kernel start address by symbol name
perf tools: Fix segfault in cumulative.callchain report
Diffstat (limited to 'kernel/events')
-rw-r--r-- | kernel/events/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/core.c b/kernel/events/core.c index a33d9a2bcbd7..b0c95f0f06fd 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -2320,7 +2320,7 @@ static void perf_event_context_sched_out(struct task_struct *task, int ctxn, next_parent = rcu_dereference(next_ctx->parent_ctx); /* If neither context have a parent context; they cannot be clones. */ - if (!parent && !next_parent) + if (!parent || !next_parent) goto unlock; if (next_parent == ctx || next_ctx == parent || next_parent == parent) { |