diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 2c79630cd267412f118832797b0f463eaa346a81..e392f750a1cf57232dba5baec23923d2f422eb07 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -5825,6 +5825,7 @@ void __init ftrace_free_init_mem(void) if (!rec) continue; pg->index--; + ftrace_update_tot_cnt--; if (!pg->index) { *last_pg = pg->next; order = get_count_order(pg->size / ENTRIES_PER_PAGE);