lkml.org 
[lkml]   [1997]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectBUG in 2.0.30 kernel/sysctl.c [PATCH]
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)

\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.024 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site