]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/utsname_sysctl.c
[ARM] cache align destination pointer when copying memory for some processors
[linux-2.6-omap-h63xx.git] / kernel / utsname_sysctl.c
index c76c06466bfd07fe11fab8a592075ac0a38b807b..fe3a56c2256d7ee44e46813aeee597559ba29131 100644 (file)
 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);