BUG in 2.0.30 kernel/sysctl.c [PATCH]

Richard Guenther (richard.guenther@student.uni-tuebingen.de)
Fri, 2 May 1997 17:43:20 +0200 (MESZ)


Hi!

I just noticed, that dynamic sysctl registering is not working with
2.0.30, because of a bug in sysctl.c. This fixes it.
Another problem is that under /proc/sys i get duplicated directory
entries (same inode) after registering another ctl_table...

diff -u --recursive --new-file linux-2.0.30/kernel/sysctl.c linux-2.0.30x/kernel/sysctl.c
--- linux-2.0.30/kernel/sysctl.c Sun Apr 20 18:57:38 1997
+++ linux-2.0.30x/kernel/sysctl.c Fri May 2 16:57:45 1997
@@ -201,7 +201,7 @@
do {
context = 0;
error = parse_table(name, nlen, oldval, oldlenp,
- newval, newlen, root_table, &context);
+ newval, newlen, tmp->clt_table, &context);
if (context)
kfree(context);
if (error != -ENOTDIR)