Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760216AbYHUO4f (ORCPT ); Thu, 21 Aug 2008 10:56:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757623AbYHUO4K (ORCPT ); Thu, 21 Aug 2008 10:56:10 -0400 Received: from smtp1.stealer.net ([88.198.224.204]:56008 "EHLO smtp1.stealer.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757484AbYHUO4H (ORCPT ); Thu, 21 Aug 2008 10:56:07 -0400 Date: Thu, 21 Aug 2008 16:54:44 +0200 (CEST) From: Sven Wegener To: Jared Hulbert cc: Linux-kernel@vger.kernel.org, linux-embedded@vger.kernel.org, linux-mtd , =?ISO-8859-15?Q?J=F6rn_Engel?= , tim.bird@AM.SONY.COM, cotte@de.ibm.com, nickpiggin@yahoo.com.au Subject: Re: [PATCH 06/10] AXFS: axfs_super.c In-Reply-To: Message-ID: References: <48AD0101.4020505@gmail.com> User-Agent: Alpine 1.10 (LNX 962 2008-03-14) Organization: STEALER.net MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -0.6 X-Spam-Bar: / X-Spam-Report: Scanned by SpamAssassin 3.2.1-gr1 2007-05-02 on smtp1.stealer.net at Thu, 21 Aug 2008 14:55:05 +0000 Bayes: 0.1282 Tokens: new, 181; hammy, 2; neutral, 2; spammy, 0. AutoLearn: no * 0.1 RDNS_NONE Delivered to trusted network by a host with no rDNS * -0.7 BAYES_20 BODY: Bayesian spam probability is 5 to 20% * [score: 0.1282] X-Spam-Signature: ba79ef31b79739ccb7b9f8bf9737265fb8b46bf9 X-DomainKey-Status: no signature Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1020 Lines: 35 On Thu, 21 Aug 2008, Sven Wegener wrote: > On Wed, 20 Aug 2008, Jared Hulbert wrote: > > > The many different devices AXFS can mount to and the various > > dual device mounting schemes are supported here. > > > > Signed-off-by: Jared Hulbert > > --- > > +static int __init init_axfs_fs(void) > > +{ > > + axfs_uncompress_init(); > > one more thing, axfs_uncompress_init() can fail > > > + return register_filesystem(&axfs_fs_type); And if this fails you leak the memory allocated in axfs_uncompress_init() > > +} > > + > > +static void __exit exit_axfs_fs(void) > > +{ > > + axfs_uncompress_exit(); > > + unregister_filesystem(&axfs_fs_type); > > +} > > + > > +module_init(init_axfs_fs); > > +module_exit(exit_axfs_fs); > > +MODULE_LICENSE("GPL"); -- 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/