X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=kernel%2Futsname_sysctl.c;h=4ab9659d269e23bc315729f840b8742b5876e1ff;hb=e5480b7397f497482083da056f5f300dd4ca43f3;hp=f22b9dbd2a9c734163d65f60b1ef67c1b5259858;hpb=c0cd79d11412969b6b8fa1624cdc1277db82e2fe;p=linux-2.6-omap-h63xx.git diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index f22b9dbd2a9..4ab9659d269 100644 --- a/kernel/utsname_sysctl.c +++ b/kernel/utsname_sysctl.c @@ -12,16 +12,16 @@ #include #include #include -#include #include 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