From bbe58736bf9b0deabdeef6df225d2504ccb24fee Mon Sep 17 00:00:00 2001 From: Andrew Morton <akpm@osdl.org> Date: Sun, 31 Aug 2003 04:29:33 -0700 Subject: [PATCH] [PATCH] /proc/kallsym caching fix From: Rusty Russell <rusty@rustcorp.com.au> Out by one error broke caching of results in /proc/kallsyms, slowing reading to a crawl. --- kernel/kallsyms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index b3fe9efb0866..81ab78ceae7d 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -190,7 +190,7 @@ static int update_iter(struct kallsym_iter *iter, loff_t pos) reset_iter(iter); /* We need to iterate through the previous symbols. */ - for (; iter->pos <= pos; iter->pos++) + for (; iter->pos != pos; iter->pos++) get_ksymbol_core(iter); return 1; } -- 2.30.9