瀏覽代碼

[PATCH] umount_tree() decrements mount count on wrong dentry

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Al Viro 19 年之前
父節點
當前提交
f30ac319f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fs/namespace.c

+ 1 - 1
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);
 	}
 }