diff options
Diffstat (limited to 'kernel/utsname.c')
| -rw-r--r-- | kernel/utsname.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/utsname.c b/kernel/utsname.c index 883aaaa7de8a..b1cd00b828f2 100644 --- a/kernel/utsname.c +++ b/kernel/utsname.c | |||
| @@ -42,7 +42,7 @@ static struct uts_namespace *clone_uts_ns(struct user_namespace *user_ns, | |||
| 42 | if (!ns) | 42 | if (!ns) |
| 43 | return ERR_PTR(-ENOMEM); | 43 | return ERR_PTR(-ENOMEM); |
| 44 | 44 | ||
| 45 | err = proc_alloc_inum(&ns->proc_inum); | 45 | err = proc_alloc_inum(&ns->ns.inum); |
| 46 | if (err) { | 46 | if (err) { |
| 47 | kfree(ns); | 47 | kfree(ns); |
| 48 | return ERR_PTR(err); | 48 | return ERR_PTR(err); |
| @@ -84,7 +84,7 @@ void free_uts_ns(struct kref *kref) | |||
| 84 | 84 | ||
| 85 | ns = container_of(kref, struct uts_namespace, kref); | 85 | ns = container_of(kref, struct uts_namespace, kref); |
| 86 | put_user_ns(ns->user_ns); | 86 | put_user_ns(ns->user_ns); |
| 87 | proc_free_inum(ns->proc_inum); | 87 | proc_free_inum(ns->ns.inum); |
| 88 | kfree(ns); | 88 | kfree(ns); |
| 89 | } | 89 | } |
| 90 | 90 | ||
| @@ -127,7 +127,7 @@ static unsigned int utsns_inum(void *vp) | |||
| 127 | { | 127 | { |
| 128 | struct uts_namespace *ns = vp; | 128 | struct uts_namespace *ns = vp; |
| 129 | 129 | ||
| 130 | return ns->proc_inum; | 130 | return ns->ns.inum; |
| 131 | } | 131 | } |
| 132 | 132 | ||
| 133 | const struct proc_ns_operations utsns_operations = { | 133 | const struct proc_ns_operations utsns_operations = { |
