vfs: umount_tree() might be called on subtree that had never made it
commit6baeff72b712f09aec676153d5b752dffaf90c17
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 30 May 2012 02:03:48 +0000 (29 22:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jun 2012 15:33:01 +0000 (10 00:33 +0900)
tree678850659f00ad823f2a0dae7fc1cd968a79ba63
parenta6923156ec0556f79a8ec5deb40d1aa929184b21
vfs: umount_tree() might be called on subtree that had never made it

commit 63d37a84ab6004c235314ffd7a76c5eb28c2fae0 upstream.

__mnt_make_shortterm() in there undoes the effect of __mnt_make_longterm()
we'd done back when we set ->mnt_ns non-NULL; it should not be done to
vfsmounts that had never gone through commit_tree() and friends.  Kudos to
lczerner for catching that one...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/namespace.c