diff --git a/kernel/events/core.c b/kernel/events/core.c index 1de0d709f69fd83924c5ff6b8df077624c4bf151..819ffc006d673c60528ccf582733a49500b4a373 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -7400,7 +7400,7 @@ __perf_event_exit_task(struct perf_event *child_event, struct perf_event_context *child_ctx, struct task_struct *child) { - perf_remove_from_context(child_event, !!child_event->parent); + perf_remove_from_context(child_event, true); /* * It can happen that the parent exits first, and has events