diff options
-rw-r--r-- | kernel/utsname_sysctl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c index c76c06466bfd..fe3a56c2256d 100644 --- a/kernel/utsname_sysctl.c +++ b/kernel/utsname_sysctl.c | |||
@@ -18,6 +18,10 @@ | |||
18 | static void *get_uts(ctl_table *table, int write) | 18 | static void *get_uts(ctl_table *table, int write) |
19 | { | 19 | { |
20 | char *which = table->data; | 20 | char *which = table->data; |
21 | struct uts_namespace *uts_ns; | ||
22 | |||
23 | uts_ns = current->nsproxy->uts_ns; | ||
24 | which = (which - (char *)&init_uts_ns) + (char *)uts_ns; | ||
21 | 25 | ||
22 | if (!write) | 26 | if (!write) |
23 | down_read(&uts_sem); | 27 | down_read(&uts_sem); |