|
@@ -2831,7 +2831,7 @@ try_mount_again:
|
|
|
|
|
|
remote_path_check:
|
|
remote_path_check:
|
|
/* check if a whole path (including prepath) is not remote */
|
|
/* check if a whole path (including prepath) is not remote */
|
|
- if (!rc && cifs_sb->prepathlen && tcon) {
|
|
|
|
|
|
+ if (!rc && tcon) {
|
|
/* build_path_to_root works only when we have a valid tcon */
|
|
/* build_path_to_root works only when we have a valid tcon */
|
|
full_path = cifs_build_path_to_root(cifs_sb, tcon);
|
|
full_path = cifs_build_path_to_root(cifs_sb, tcon);
|
|
if (full_path == NULL) {
|
|
if (full_path == NULL) {
|