summaryrefslogtreecommitdiffstats
path: root/fs/cifs/misc.c
diff options
context:
space:
mode:
authorPaulo Alcantara2018-11-14 19:53:52 +0100
committerSteve French2018-12-28 17:10:29 +0100
commit4a367dc0443566f87d73f2cdb94703b0e1374315 (patch)
tree056bdad61133a901b35093e69987b6abe0c4a6fd /fs/cifs/misc.c
parentcifs: remove set but not used variable 'sep' (diff)
downloadkernel-qcow2-linux-4a367dc0443566f87d73f2cdb94703b0e1374315.tar.gz
kernel-qcow2-linux-4a367dc0443566f87d73f2cdb94703b0e1374315.tar.xz
kernel-qcow2-linux-4a367dc0443566f87d73f2cdb94703b0e1374315.zip
cifs: Add support for failover in cifs_mount()
This patch adds support for failover when failing to connect in cifs_mount(). Signed-off-by: Paulo Alcantara <palcantara@suse.de> Reviewed-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r--fs/cifs/misc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
index 10ae1a35b6f7..7c858d4c66f3 100644
--- a/fs/cifs/misc.c
+++ b/fs/cifs/misc.c
@@ -146,6 +146,9 @@ tconInfoFree(struct cifs_tcon *buf_to_free)
kfree(buf_to_free->nativeFileSystem);
kzfree(buf_to_free->password);
kfree(buf_to_free->crfid.fid);
+#ifdef CONFIG_CIFS_DFS_UPCALL
+ kfree(buf_to_free->dfs_path);
+#endif
kfree(buf_to_free);
}