diff options
Diffstat (limited to 'kernel/trace/trace.c')
-rw-r--r-- | kernel/trace/trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 5afce60e1b68..2078b86750e0 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
@@ -4928,7 +4928,7 @@ tracing_mark_write(struct file *filp, const char __user *ubuf, | |||
4928 | *fpos += written; | 4928 | *fpos += written; |
4929 | 4929 | ||
4930 | out_unlock: | 4930 | out_unlock: |
4931 | for (i = 0; i < nr_pages; i++){ | 4931 | for (i = nr_pages - 1; i >= 0; i--) { |
4932 | kunmap_atomic(map_page[i]); | 4932 | kunmap_atomic(map_page[i]); |
4933 | put_page(pages[i]); | 4933 | put_page(pages[i]); |
4934 | } | 4934 | } |