diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc_namespace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/proc_namespace.c b/fs/proc_namespace.c index 73ca1740d839..789e8d1e21db 100644 --- a/fs/proc_namespace.c +++ b/fs/proc_namespace.c | |||
@@ -125,7 +125,6 @@ static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt) | |||
125 | struct mount *r = real_mount(mnt); | 125 | struct mount *r = real_mount(mnt); |
126 | struct super_block *sb = mnt->mnt_sb; | 126 | struct super_block *sb = mnt->mnt_sb; |
127 | struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; | 127 | struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; |
128 | struct path root = p->root; | ||
129 | int err = 0; | 128 | int err = 0; |
130 | 129 | ||
131 | seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, | 130 | seq_printf(m, "%i %i %u:%u ", r->mnt_id, r->mnt_parent->mnt_id, |
@@ -139,7 +138,7 @@ static int show_mountinfo(struct seq_file *m, struct vfsmount *mnt) | |||
139 | seq_putc(m, ' '); | 138 | seq_putc(m, ' '); |
140 | 139 | ||
141 | /* mountpoints outside of chroot jail will give SEQ_SKIP on this */ | 140 | /* mountpoints outside of chroot jail will give SEQ_SKIP on this */ |
142 | err = seq_path_root(m, &mnt_path, &root, " \t\n\\"); | 141 | err = seq_path_root(m, &mnt_path, &p->root, " \t\n\\"); |
143 | if (err) | 142 | if (err) |
144 | goto out; | 143 | goto out; |
145 | 144 | ||