diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 53f9c31a52b2..387b91ae7400 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -2839,7 +2839,7 @@ remote_path_check: | |||
2839 | goto mount_fail_check; | 2839 | goto mount_fail_check; |
2840 | } | 2840 | } |
2841 | rc = is_path_accessible(xid, tcon, cifs_sb, full_path); | 2841 | rc = is_path_accessible(xid, tcon, cifs_sb, full_path); |
2842 | if (rc != -EREMOTE) { | 2842 | if (rc != 0 && rc != -EREMOTE) { |
2843 | kfree(full_path); | 2843 | kfree(full_path); |
2844 | goto mount_fail_check; | 2844 | goto mount_fail_check; |
2845 | } | 2845 | } |