diff options
Diffstat (limited to 'kernel/lockdep_proc.c')
-rw-r--r-- | kernel/lockdep_proc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c index e682926c9ad6..39163ed1bf0a 100644 --- a/kernel/lockdep_proc.c +++ b/kernel/lockdep_proc.c | |||
@@ -5,7 +5,8 @@ | |||
5 | * | 5 | * |
6 | * Started by Ingo Molnar: | 6 | * Started by Ingo Molnar: |
7 | * | 7 | * |
8 | * Copyright (C) 2006 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> | 8 | * Copyright (C) 2006,2007 Red Hat, Inc., Ingo Molnar <mingo@redhat.com> |
9 | * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra <pzijlstr@redhat.com> | ||
9 | * | 10 | * |
10 | * Code for /proc/lockdep and /proc/lockdep_stats: | 11 | * Code for /proc/lockdep and /proc/lockdep_stats: |
11 | * | 12 | * |
@@ -498,6 +499,9 @@ static void *ls_start(struct seq_file *m, loff_t *pos) | |||
498 | if (data->iter == data->stats) | 499 | if (data->iter == data->stats) |
499 | seq_header(m); | 500 | seq_header(m); |
500 | 501 | ||
502 | if (data->iter == data->iter_end) | ||
503 | data->iter = NULL; | ||
504 | |||
501 | return data->iter; | 505 | return data->iter; |
502 | } | 506 | } |
503 | 507 | ||