]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sched_nr_migrate wrong mode bits
authorMichal Schmidt <mschmidt@redhat.com>
Mon, 17 Mar 2008 23:13:16 +0000 (00:13 +0100)
committerChris Wright <chrisw@sous-sol.org>
Mon, 24 Mar 2008 18:47:46 +0000 (11:47 -0700)
sched_nr_migrate has strange permission bits:

 $ ls -l /proc/sys/kernel/sched_nr_migrate
 --w----r-T 1 root root 0 2008-03-17 23:31 /proc/sys/kernel/sched_nr_migrate

The bug is an obvious decimal/octal confusion.

Fixed (collaterally) in Linus's tree by Peter Zijlstra with commit fa85ae241
"sched: rt time limit" (in 2.6.25-rc1).

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/sysctl.c

index e3e0ee388857a2bbd7518ff11b6e0747c9d28a12..397ff8c4115f30887d804c025a1dd724e3b5a28e 100644 (file)
@@ -306,7 +306,7 @@ static struct ctl_table kern_table[] = {
                .procname       = "sched_nr_migrate",
                .data           = &sysctl_sched_nr_migrate,
                .maxlen         = sizeof(unsigned int),
-               .mode           = 644,
+               .mode           = 0644,
                .proc_handler   = &proc_dointvec,
        },
 #endif