mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fs: don't forget to put old mntns in mntns_install
Fixes: 4f757f3cbf ("make sure that mntns_install() doesn't end up with referral for root")
Cc: Al Viro <[email protected]>
Signed-off-by: Andrei Vagin <[email protected]>
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
81be24d263
commit
4068367c9c
1 changed files with 2 additions and 0 deletions
|
|
@ -3488,6 +3488,8 @@ static int mntns_install(struct nsproxy *nsproxy, struct ns_common *ns)
|
|||
return err;
|
||||
}
|
||||
|
||||
put_mnt_ns(old_mnt_ns);
|
||||
|
||||
/* Update the pwd and root */
|
||||
set_fs_pwd(fs, &root);
|
||||
set_fs_root(fs, &root);
|
||||
|
|
|
|||
Loading…
Reference in a new issue