Merge tag 'vfio-v4.11-rc4' of git://github.com/awilliam/linux-vfio
[linux-2.6-microblaze.git] / fs / cifs / cifs_dfs_ref.c
index 9156be5..6b61df1 100644 (file)
@@ -303,7 +303,9 @@ 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);
+
+       /* always use tree name prefix */
+       full_path = build_path_from_dentry_optional_prefix(mntpt, true);
        if (full_path == NULL)
                goto cdda_exit;