From: Andrew Morton fs/proc/proc_sysctl.c: In function 'do_proc_sys_lookup': fs/proc/proc_sysctl.c:128: warning: 'table' may be used uninitialized in this function It this a bugfix too? Eric W. Biederman Signed-off-by: Andrew Morton --- fs/proc/proc_sysctl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff -puN fs/proc/proc_sysctl.c~sysctl-reimplement-the-sysctl-proc-support-warning-fix fs/proc/proc_sysctl.c --- a/fs/proc/proc_sysctl.c~sysctl-reimplement-the-sysctl-proc-support-warning-fix +++ a/fs/proc/proc_sysctl.c @@ -125,9 +125,10 @@ static struct ctl_table *do_proc_sys_loo struct ctl_table_header **ptr) { struct ctl_table_header *head; - struct ctl_table *table; + struct ctl_table *table = NULL; - for (head = sysctl_head_next(NULL); head; head = sysctl_head_next(head)) { + for (head = sysctl_head_next(NULL); head; + head = sysctl_head_next(head)) { table = proc_sys_lookup_entry(parent, name, head->ctl_table); if (table) break; _