File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -3688,14 +3688,16 @@ cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *volume_info)
3688
3688
goto mount_fail_check ;
3689
3689
}
3690
3690
3691
- rc = cifs_are_all_path_components_accessible (server ,
3691
+ if (rc != - EREMOTE ) {
3692
+ rc = cifs_are_all_path_components_accessible (server ,
3692
3693
xid , tcon , cifs_sb ,
3693
3694
full_path );
3694
- if (rc != 0 ) {
3695
- cifs_dbg (VFS , "cannot query dirs between root and final path, "
3696
- "enabling CIFS_MOUNT_USE_PREFIX_PATH\n" );
3697
- cifs_sb -> mnt_cifs_flags |= CIFS_MOUNT_USE_PREFIX_PATH ;
3698
- rc = 0 ;
3695
+ if (rc != 0 ) {
3696
+ cifs_dbg (VFS , "cannot query dirs between root and final path, "
3697
+ "enabling CIFS_MOUNT_USE_PREFIX_PATH\n" );
3698
+ cifs_sb -> mnt_cifs_flags |= CIFS_MOUNT_USE_PREFIX_PATH ;
3699
+ rc = 0 ;
3700
+ }
3699
3701
}
3700
3702
kfree (full_path );
3701
3703
}
You can’t perform that action at this time.
0 commit comments