Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752380Ab0FWQvb (ORCPT ); Wed, 23 Jun 2010 12:51:31 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50923 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751520Ab0FWQv3 (ORCPT ); Wed, 23 Jun 2010 12:51:29 -0400 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <1277220189-3485-1-git-send-email-sjayaraman@suse.de> References: <1277220189-3485-1-git-send-email-sjayaraman@suse.de> To: Suresh Jayaraman Cc: dhowells@redhat.com, Steve French , linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 03/10] cifs: register CIFS for caching Date: Wed, 23 Jun 2010 17:51:17 +0100 Message-ID: <9603.1277311877@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 705 Lines: 25 Suresh Jayaraman wrote: > + rc = cifs_fscache_register(); > + if (rc) > + goto out; > + > rc = cifs_init_inodecache(); > if (rc) > goto out_clean_proc; > @@ -949,8 +954,10 @@ init_cifs(void) > cifs_destroy_mids(); > out_destroy_inodecache: > cifs_destroy_inodecache(); > + cifs_fscache_unregister(); > out_clean_proc: This is incorrect. You need to call cifs_fscache_unregister() if cifs_init_inodecache() fails. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/