diff --git a/kernel/events/core.c b/kernel/events/core.c index 1cb1f9b8392e..e5c4aca620c5 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -10192,7 +10192,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;