Commit d8c084f9 authored by Randy Dunlap's avatar Randy Dunlap Committed by Anton Blanchard

[PATCH] remove double-init in /proc/ksyms

This removes a small thinko (2 of: n = *pos) in kernel/module.c's
s_start() function.
parent dd53e3fa
......@@ -1165,7 +1165,7 @@ static void *s_start(struct seq_file *m, loff_t *pos)
if (!p)
return ERR_PTR(-ENOMEM);
lock_kernel();
for (v = module_list, n = *pos; v; n -= v->nsyms, v = v->next) {
for (v = module_list; v; n -= v->nsyms, v = v->next) {
if (n < v->nsyms) {
p->mod = v;
p->index = n;
......
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