From 8ed41187391ba7da2901edc429925f55909af899 Mon Sep 17 00:00:00 2001 From: Jeff Layton Date: Mon, 6 Dec 2010 21:07:33 -0500 Subject: [PATCH] --- yaml --- r: 223041 b: refs/heads/master c: 03ceace5c6923ffbcf2b4d2e37afbffbdb5d4a67 h: refs/heads/master i: 223039: 37c86454dd9e4dfc3ebcc375e7dea8b6f822c257 v: v3 --- [refs] | 2 +- trunk/fs/cifs/connect.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }