diff options
-rw-r--r-- | kernel/trace/ftrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 39df3192e725..e14ff4c1713e 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2637,7 +2637,8 @@ ftrace_allocate_pages(unsigned long num_to_init) | |||
2637 | return start_pg; | 2637 | return start_pg; |
2638 | 2638 | ||
2639 | free_pages: | 2639 | free_pages: |
2640 | while (start_pg) { | 2640 | pg = start_pg; |
2641 | while (pg) { | ||
2641 | order = get_count_order(pg->size / ENTRIES_PER_PAGE); | 2642 | order = get_count_order(pg->size / ENTRIES_PER_PAGE); |
2642 | free_pages((unsigned long)pg->records, order); | 2643 | free_pages((unsigned long)pg->records, order); |
2643 | start_pg = pg->next; | 2644 | start_pg = pg->next; |