Unverified Commit 8d6be4fa authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3229 [sync] PR-3161: fs: Fix error checking for d_hash_and_lookup()

parents aa9bfcd5 6412f0dc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2647,7 +2647,7 @@ int path_pts(struct path *path)
	dput(path->dentry);
	path->dentry = parent;
	child = d_hash_and_lookup(parent, &this);
	if (!child)
	if (IS_ERR_OR_NULL(child))
		return -ENOENT;

	path->dentry = child;