diff --git a/kernel/events/core.c b/kernel/events/core.c index 7e0fdc19043e..c677f934353a 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9973,7 +9973,7 @@ static void perf_event_addr_filters_apply(struct perf_event *event) return; if (ifh->nr_file_filters) { - mm = get_task_mm(event->ctx->task); + mm = get_task_mm(task); if (!mm) goto restart;