From: Al Viro Date: Wed, 1 Feb 2006 12:53:21 +0000 (-0500) Subject: [PATCH] umount_tree() decrements mount count on wrong dentry X-Git-Tag: firefly_0821_release~38134 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f30ac319f1b91878cdc57a50930f15c36e0e103a;p=firefly-linux-kernel-4.4.55.git [PATCH] umount_tree() decrements mount count on wrong dentry Signed-off-by: Al Viro --- diff --git a/fs/namespace.c b/fs/namespace.c index a2bef5c81033..058a44865beb 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -494,7 +494,7 @@ void umount_tree(struct vfsmount *mnt, int propagate, struct list_head *kill) p->mnt_namespace = NULL; list_del_init(&p->mnt_child); if (p->mnt_parent != p) - mnt->mnt_mountpoint->d_mounted--; + p->mnt_mountpoint->d_mounted--; change_mnt_propagation(p, MS_PRIVATE); } }