X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=kernel%2Futsname_sysctl.c;h=c76c06466bfd07fe11fab8a592075ac0a38b807b;hb=c2dc1ad582196208a2f990eb0230eb922046c684;hp=f22b9dbd2a9c734163d65f60b1ef67c1b5259858;hpb=920841d8d1d61bc12b43f95a579a5374f6d98f81;p=mv-sheeva.git diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index f22b9dbd2a9..c76c06466bf 100644 --- a/kernel/utsname_sysctl.c +++ b/kernel/utsname_sysctl.c @@ -18,10 +18,7 @@ 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; - which = (which - (char *)&init_uts_ns) + (char *)uts_ns; -#endif + if (!write) down_read(&uts_sem); else