[PATCH] (trivial) remove double-init in /proc/ksyms

From: Randy.Dunlap (rddunlap@osdl.org)
Date: Wed Oct 30 2002 - 00:14:07 EST


This removes a small thinko (2 of: n = *pos) in
kernel/module.c's s_start() function.

Patch is to 2.5.44. Please apply.

-- 
~Randy

--- ./kernel/module.c.fixit Fri Oct 18 21:01:17 2002 +++ ./kernel/module.c Wed Oct 23 19:54:10 2002 @@ -1165,7 +1165,7 @@ 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;

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Oct 31 2002 - 22:00:46 EST