diff options
| author | Randy Dunlap <rddunlap@osdl.org> | 2002-10-29 05:33:14 -0800 |
|---|---|---|
| committer | Anton Blanchard <anton@samba.org> | 2002-10-29 05:33:14 -0800 |
| commit | d8c084f9fd65a1bf948acc5bf08b066f85160cba (patch) | |
| tree | fc18fe9e691e401e9ab70279c7ace77f86b5fdc5 /kernel | |
| parent | dd53e3fa28fcc73c75864b17b97741b253583d0e (diff) | |
[PATCH] remove double-init in /proc/ksyms
This removes a small thinko (2 of: n = *pos) in kernel/module.c's
s_start() function.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/module.c b/kernel/module.c index 8c776f07e765..6b8bd749e436 100644 --- a/kernel/module.c +++ b/kernel/module.c @@ -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; |
