diff options
-rw-r--r-- | kernel/trace/ftrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 2d51166b93fe..1884cf5bc110 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -1477,10 +1477,9 @@ t_next(struct seq_file *m, void *v, loff_t *pos) | |||
1477 | 1477 | ||
1478 | (*pos)++; | 1478 | (*pos)++; |
1479 | iter->pos = *pos; | 1479 | iter->pos = *pos; |
1480 | iter->func_pos = *pos; | ||
1481 | 1480 | ||
1482 | if (iter->flags & FTRACE_ITER_PRINTALL) | 1481 | if (iter->flags & FTRACE_ITER_PRINTALL) |
1483 | return NULL; | 1482 | return t_hash_start(m, pos); |
1484 | 1483 | ||
1485 | retry: | 1484 | retry: |
1486 | if (iter->idx >= iter->pg->index) { | 1485 | if (iter->idx >= iter->pg->index) { |
@@ -1510,8 +1509,9 @@ t_next(struct seq_file *m, void *v, loff_t *pos) | |||
1510 | } | 1509 | } |
1511 | 1510 | ||
1512 | if (!rec) | 1511 | if (!rec) |
1513 | return NULL; | 1512 | return t_hash_start(m, pos); |
1514 | 1513 | ||
1514 | iter->func_pos = *pos; | ||
1515 | iter->func = rec; | 1515 | iter->func = rec; |
1516 | 1516 | ||
1517 | return iter; | 1517 | return iter; |