From 2760d7efb04904e97857e73de986b3be9093ed90 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Wed, 28 Nov 2007 16:21:38 -0800 Subject: [PATCH] --- yaml --- r: 74362 b: refs/heads/master c: 32df81cbd5b41d281cc3d7e7ff6a98ac6201e197 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/kernel/utsname_sysctl.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index dcbb89938aaf..fc275376543f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 48986f06b6bc6f435debcfad0a748ce35f0a52df +refs/heads/master: 32df81cbd5b41d281cc3d7e7ff6a98ac6201e197 diff --git a/trunk/kernel/utsname_sysctl.c b/trunk/kernel/utsname_sysctl.c index c76c06466bfd..fe3a56c2256d 100644 --- a/trunk/kernel/utsname_sysctl.c +++ b/trunk/kernel/utsname_sysctl.c @@ -18,6 +18,10 @@ 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);