]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
forgotten refcount on sysctl root table
authorAl Viro <viro@ZenIV.linux.org.uk>
Thu, 4 Sep 2008 16:05:57 +0000 (17:05 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Sep 2008 18:06:21 +0000 (11:06 -0700)
We should've set refcount on the root sysctl table; otherwise we'll blow
up the first time we get down to zero dynamically registered sysctl
tables.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Tested-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sysctl.c

index fe47133472758853b039c47ac9390e5eadd34bed..50ec0886fa3d355d696e9992a9057ce11a721525 100644 (file)
@@ -159,6 +159,7 @@ static int proc_dointvec_taint(struct ctl_table *table, int write, struct file *
 static struct ctl_table root_table[];
 static struct ctl_table_root sysctl_table_root;
 static struct ctl_table_header root_table_header = {
+       .count = 1,
        .ctl_table = root_table,
        .ctl_entry = LIST_HEAD_INIT(sysctl_table_root.default_set.list),
        .root = &sysctl_table_root,