From patchwork Mon Dec 6 19:34:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Layton X-Patchwork-Id: 379672 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB6JYZiK020367 for ; Mon, 6 Dec 2010 19:34:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753890Ab0LFTee (ORCPT ); Mon, 6 Dec 2010 14:34:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:31449 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753129Ab0LFTee (ORCPT ); Mon, 6 Dec 2010 14:34:34 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oB6JYQdj000454 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 6 Dec 2010 14:34:26 -0500 Received: from tlielax.poochiereds.net (vpn-9-71.rdu.redhat.com [10.11.9.71]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oB6JYOmD032157; Mon, 6 Dec 2010 14:34:25 -0500 Date: Mon, 6 Dec 2010 14:34:23 -0500 From: Jeff Layton To: Robbert Kouprie Cc: smfrench@gmail.com, linux-cifs@vger.kernel.org Subject: Re: [PATCH] cifs: allow calling cifs_build_path_to_root on incomplete cifs_sb Message-ID: <20101206143423.74d8e236@tlielax.poochiereds.net> In-Reply-To: <4CFD35A2.7080407@exx.nl> References: <20101206070846.1f2c35d4@tlielax.poochiereds.net> <1291637703-10989-1-git-send-email-jlayton@redhat.com> <4CFD35A2.7080407@exx.nl> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Mon, 06 Dec 2010 19:34:35 +0000 (UTC) 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; }