Re: [PATCH 06/10] AXFS: axfs_super.c

From: Sven Wegener
Date: Thu Aug 21 2008 - 10:56:37 EST


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 <jaredeh@xxxxxxxxx>
> > ---
> > +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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/