From patchwork Mon Nov 15 12:45:23 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suresh Jayaraman X-Patchwork-Id: 324942 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 oAFCjNVE026094 for ; Mon, 15 Nov 2010 12:45:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752334Ab0KOMp3 (ORCPT ); Mon, 15 Nov 2010 07:45:29 -0500 Received: from victor.provo.novell.com ([137.65.250.26]:37789 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753329Ab0KOMp2 (ORCPT ); Mon, 15 Nov 2010 07:45:28 -0500 Received: from localhost (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by victor.provo.novell.com with ESMTP; Mon, 15 Nov 2010 05:45:25 -0700 From: Suresh Jayaraman To: Steve French Cc: linux-cifs@vger.kernel.org Subject: [PATCH] cifs: handle cifs_get_tcon() errors properly Date: Mon, 15 Nov 2010 18:15:23 +0530 Message-Id: <1289825123-13716-1-git-send-email-sjayaraman@suse.de> X-Mailer: git-send-email 1.7.1 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, 15 Nov 2010 12:45:29 +0000 (UTC) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 251a17c..c3a2323 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2780,7 +2780,10 @@ try_mount_again: if (IS_ERR(tcon)) { rc = PTR_ERR(tcon); tcon = NULL; - goto remote_path_check; + if (rc == -EREMOTEIO) + goto remote_path_check; + else + goto mount_fail_check; } /* do not care if following two calls succeed - informational */