diff --git a/[refs] b/[refs] index 389a2e688c71..27e8c8696b75 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 884639996814585ef7079daa9e03a1eb562e235c +refs/heads/master: 03ceace5c6923ffbcf2b4d2e37afbffbdb5d4a67 diff --git a/trunk/fs/cifs/connect.c b/trunk/fs/cifs/connect.c index 53f9c31a52b2..387b91ae7400 100644 --- a/trunk/fs/cifs/connect.c +++ b/trunk/fs/cifs/connect.c @@ -2839,7 +2839,7 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, goto mount_fail_check; } rc = is_path_accessible(xid, tcon, cifs_sb, full_path); - if (rc != -EREMOTE) { + if (rc != 0 && rc != -EREMOTE) { kfree(full_path); goto mount_fail_check; }