Commit afef80b3d87cae574b8c6b763505f25b74d254ef

Authored by Eric W. Biederman
Committed by Linus Torvalds
1 parent 8891d6da17

vfs: fix shrink_submounts

In the last refactoring of shrink_submounts a variable was not completely
renamed.  So finish the renaming of mnt to m now.

Without this if you attempt to mount an nfs mount that has both automatic
nfs sub mounts on it, and has normal mounts on it.  The unmount will
succeed when it should not.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Al Viro <viro@ZenIV.linux.org.uk
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -1815,8 +1815,8 @@
1815 1815 while (!list_empty(&graveyard)) {
1816 1816 m = list_first_entry(&graveyard, struct vfsmount,
1817 1817 mnt_expire);
1818   - touch_mnt_namespace(mnt->mnt_ns);
1819   - umount_tree(mnt, 1, umounts);
  1818 + touch_mnt_namespace(m->mnt_ns);
  1819 + umount_tree(m, 1, umounts);
1820 1820 }
1821 1821 }
1822 1822 }