Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 178695
b: refs/heads/master
c: 05cbaa2
h: refs/heads/master
i:
  178693: ac45276
  178691: 45d7bb9
  178687: 59a534c
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Dec 31, 2009
1 parent 1fb7d43 commit dde9629
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48b5ba9cc98d676712da29d9931f1c88e5185ff2
refs/heads/master: 05cbaa2853cdfc255fdd04e65a82bfe9208c4e52
5 changes: 2 additions & 3 deletions trunk/kernel/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -5148,7 +5148,7 @@ int perf_event_init_task(struct task_struct *child)
GFP_KERNEL);
if (!child_ctx) {
ret = -ENOMEM;
goto exit;
break;
}

__perf_event_init_context(child_ctx, child);
Expand All @@ -5164,7 +5164,7 @@ int perf_event_init_task(struct task_struct *child)
}
}

if (inherited_all) {
if (child_ctx && inherited_all) {
/*
* Mark the child context as a clone of the parent
* context, or of whatever the parent is a clone of.
Expand All @@ -5184,7 +5184,6 @@ int perf_event_init_task(struct task_struct *child)
get_ctx(child_ctx->parent_ctx);
}

exit:
mutex_unlock(&parent_ctx->mutex);

perf_unpin_context(parent_ctx);
Expand Down

0 comments on commit dde9629

Please sign in to comment.