aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2010-01-19 09:53:43 -0500
committerTakashi Iwai <tiwai@suse.de>2010-01-19 09:53:43 -0500
commit9e4c84967ef027fe50a03cf48dd6da9519c8e60c (patch)
tree21d6b8168670f22521f3bb703e3b9d1932566c1c /kernel/perf_event.c
parentd2f2fcd2541bae004db7f4798ffd9d2cb75ae817 (diff)
parent3fb4a508b8e7957aa899f32cd6d9d462e102c7ca (diff)
Merge branch 'fix/hda' into topic/hda
Conflicts: sound/pci/hda/patch_realtek.c
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r--kernel/perf_event.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 1f38270f08c7..603c0d8b5df1 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -5148,7 +5148,7 @@ int perf_event_init_task(struct task_struct *child)
5148 GFP_KERNEL); 5148 GFP_KERNEL);
5149 if (!child_ctx) { 5149 if (!child_ctx) {
5150 ret = -ENOMEM; 5150 ret = -ENOMEM;
5151 goto exit; 5151 break;
5152 } 5152 }
5153 5153
5154 __perf_event_init_context(child_ctx, child); 5154 __perf_event_init_context(child_ctx, child);
@@ -5164,7 +5164,7 @@ int perf_event_init_task(struct task_struct *child)
5164 } 5164 }
5165 } 5165 }
5166 5166
5167 if (inherited_all) { 5167 if (child_ctx && inherited_all) {
5168 /* 5168 /*
5169 * Mark the child context as a clone of the parent 5169 * Mark the child context as a clone of the parent
5170 * context, or of whatever the parent is a clone of. 5170 * context, or of whatever the parent is a clone of.
@@ -5184,7 +5184,6 @@ int perf_event_init_task(struct task_struct *child)
5184 get_ctx(child_ctx->parent_ctx); 5184 get_ctx(child_ctx->parent_ctx);
5185 } 5185 }
5186 5186
5187exit:
5188 mutex_unlock(&parent_ctx->mutex); 5187 mutex_unlock(&parent_ctx->mutex);
5189 5188
5190 perf_unpin_context(parent_ctx); 5189 perf_unpin_context(parent_ctx);