Commit bbe58736 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[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.
parent f9b59c80
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment