cifs: fix issue mounting of DFS ROOT when redirecting from one domain controller...
[firefly-linux-kernel-4.4.55.git] / fs / cifs / connect.c
index cb85825c741c2f4aba7db3ebb81b680a852ecca0..b7758094770cf8f60fb01fb36c0c3350e4550f69 100644 (file)
@@ -3004,7 +3004,7 @@ cifs_get_volume_info(char *mount_data, const char *devname)
 int
 cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *volume_info)
 {
-       int rc = 0;
+       int rc;
        int xid;
        struct cifs_ses *pSesInfo;
        struct cifs_tcon *tcon;
@@ -3033,6 +3033,7 @@ try_mount_again:
                FreeXid(xid);
        }
 #endif
+       rc = 0;
        tcon = NULL;
        pSesInfo = NULL;
        srvTcp = NULL;