> @@ -2234,8 +2239,15 @@ int path_from_stashed(struct dentry **stashed, struct vfsmount *mnt, void *data, > return PTR_ERR(dentry); > > /* Added a new dentry. @data is now owned by the filesystem. */ > - path->dentry = stash_dentry(stashed, dentry); > - if (path->dentry != dentry) > + if (sops->stash_dentry) > + res = sops->stash_dentry(stashed, dentry); > + else > + res = stash_dentry(stashed, dentry); > + if (IS_ERR(res)) > + return PTR_ERR(res); Missing dput(). Fixed in-tree.