Message ID | 1374015245-28504-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/kernel/events/core.c b/kernel/events/core.c index 1df07c2..e133177 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -7137,7 +7137,7 @@ inherit_task_group(struct perf_event *event, struct task_struct *parent, * child. */ - child_ctx = alloc_perf_context(event->pmu, child); + child_ctx = alloc_perf_context(parent_ctx->pmu, child); if (!child_ctx) return -ENOMEM;