X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Futsname_sysctl.c;h=4ab9659d269e23bc315729f840b8742b5876e1ff;hb=2172fe8704a1df7cbb988ae1ec4edbfef3e28860;hp=c76c06466bfd07fe11fab8a592075ac0a38b807b;hpb=10b275ddfd05ccb414cfe0cc56a0f47ff20fe807;p=pandora-kernel.git diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index c76c06466bfd..4ab9659d269e 100644 --- a/kernel/utsname_sysctl.c +++ b/kernel/utsname_sysctl.c @@ -12,12 +12,15 @@ #include #include #include -#include #include static void *get_uts(ctl_table *table, int write) { char *which = table->data; + struct uts_namespace *uts_ns; + + uts_ns = current->nsproxy->uts_ns; + which = (which - (char *)&init_uts_ns) + (char *)uts_ns; if (!write) down_read(&uts_sem);