]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/utsname_sysctl.c
Fix oops in acer_wmi driver (acer_wmi_init)
[linux-2.6-omap-h63xx.git] / kernel / utsname_sysctl.c
index 324aa1341b5f9a2a4a437081782c70b27097c83b..4ab9659d269e23bc315729f840b8742b5876e1ff 100644 (file)
 #include <linux/module.h>
 #include <linux/uts.h>
 #include <linux/utsname.h>
-#include <linux/version.h>
 #include <linux/sysctl.h>
 
 static void *get_uts(ctl_table *table, int write)
 {
        char *which = table->data;
-#ifdef CONFIG_UTS_NS
-       struct uts_namespace *uts_ns = current->nsproxy->uts_ns;
+       struct uts_namespace *uts_ns;
+
+       uts_ns = current->nsproxy->uts_ns;
        which = (which - (char *)&init_uts_ns) + (char *)uts_ns;
-#endif
+
        if (!write)
                down_read(&uts_sem);
        else
@@ -139,7 +139,7 @@ static struct ctl_table uts_root_table[] = {
 
 static int __init utsname_sysctl_init(void)
 {
-       register_sysctl_table(uts_root_table, 0);
+       register_sysctl_table(uts_root_table);
        return 0;
 }