From patchwork Thu Dec 3 05:53:22 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suresh Jayaraman X-Patchwork-Id: 64414 Received: from lists.samba.org (fn.samba.org [216.83.154.106]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB35rY7Z018881 for ; Thu, 3 Dec 2009 05:53:35 GMT Received: from fn.samba.org (localhost [127.0.0.1]) by lists.samba.org (Postfix) with ESMTP id 68DC8AD093; Wed, 2 Dec 2009 22:51:48 -0700 (MST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on fn.samba.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.8 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI autolearn=ham version=3.2.5 X-Original-To: linux-cifs-client@lists.samba.org Delivered-To: linux-cifs-client@lists.samba.org Received: from mx1.suse.de (cantor.suse.de [195.135.220.2]) by lists.samba.org (Postfix) with ESMTP id 7B1AAAD087 for ; Wed, 2 Dec 2009 22:51:43 -0700 (MST) Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 9256F8D893; Thu, 3 Dec 2009 06:53:28 +0100 (CET) Message-ID: <4B175252.6070607@suse.de> Date: Thu, 03 Dec 2009 11:23:22 +0530 From: Suresh Jayaraman User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20090915 SUSE/3.0b4-3.6 Thunderbird/3.0b4 MIME-Version: 1.0 To: Jeff Layton References: <200912021715.31136.gustavo@angulosolido.pt> <20091202131835.3f2584bd@tlielax.poochiereds.net> In-Reply-To: <20091202131835.3f2584bd@tlielax.poochiereds.net> Cc: linux-cifs-client@lists.samba.org Subject: Re: [linux-cifs-client] kernel crash - CIFS client unstable on faulty network conditions X-BeenThere: linux-cifs-client@lists.samba.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: The Linux CIFS VFS client List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-cifs-client-bounces@lists.samba.org Errors-To: linux-cifs-client-bounces@lists.samba.org diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 63ea83f..04047e7 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1672,7 +1672,8 @@ cifs_put_tcon(struct cifsTconInfo *tcon) _FreeXid(xid); tconInfoFree(tcon); - cifs_put_smb_ses(ses); + if (ses) + cifs_put_smb_ses(ses); } int