Message ID | 1478622806-19636-6-git-send-email-aaptel@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/cifs/cifs_dfs_ref.c b/fs/cifs/cifs_dfs_ref.c index ec9dbbc..141a418 100644 --- a/fs/cifs/cifs_dfs_ref.c +++ b/fs/cifs/cifs_dfs_ref.c @@ -302,7 +302,7 @@ static struct vfsmount *cifs_dfs_do_automount(struct dentry *mntpt) * gives us the latter, so we must adjust the result. */ mnt = ERR_PTR(-ENOMEM); - full_path = build_path_from_dentry(mntpt); + full_path = build_path_from_dentry_optional_prefix(mntpt, 1 /* always use tree name prefix */); if (full_path == NULL) goto cdda_exit;
for some reason the tcon used in build_path_from_dentry for that mount point doesn't have the the "IN DFS" flag set so the prefix was not always added even though it is required in this case. Signed-off-by: Aurelien Aptel <aaptel@suse.com> --- fs/cifs/cifs_dfs_ref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)