]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/cifs/cifs_dfs_ref.c
btrfs: fix memory leak in update_space_info failure path
[karo-tx-linux.git] / fs / cifs / cifs_dfs_ref.c
index 9156be545b0f103703c70462a219da06d2bf44bf..6b61df117fd48c456f30275053187ffd720d46e1 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;