Message ID | 20101206143423.74d8e236@tlielax.poochiereds.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index bee397f..9fbe7c5 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2836,7 +2836,7 @@ remote_path_check: 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; }