The patch titled freevxfs: fix leak on error path has been removed from the -mm tree. Its filename is freevxfs-fix-leak-on-error-path.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: freevxfs: fix leak on error path From: Alexey Dobriyan <adobriyan@xxxxxxxxx> If register_filesystem() fails, vxfs_inode cache must be destroyed. Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx> Acked-by: Christoph Hellwig <hch@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- fs/freevxfs/vxfs_super.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff -puN fs/freevxfs/vxfs_super.c~freevxfs-fix-leak-on-error-path fs/freevxfs/vxfs_super.c --- a/fs/freevxfs/vxfs_super.c~freevxfs-fix-leak-on-error-path +++ a/fs/freevxfs/vxfs_super.c @@ -260,12 +260,17 @@ static struct file_system_type vxfs_fs_t static int __init vxfs_init(void) { + int rv; + vxfs_inode_cachep = kmem_cache_create("vxfs_inode", sizeof(struct vxfs_inode_info), 0, SLAB_RECLAIM_ACCOUNT|SLAB_MEM_SPREAD, NULL, NULL); - if (vxfs_inode_cachep) - return register_filesystem(&vxfs_fs_type); - return -ENOMEM; + if (!vxfs_inode_cachep) + return -ENOMEM; + rv = register_filesystem(&vxfs_fs_type); + if (rv < 0) + kmem_cache_destroy(vxfs_inode_cachep); + return rv; } static void __exit _ Patches currently in -mm which might be from adobriyan@xxxxxxxxx are origin.patch asus_acpi-fix-proc-files-parsing.patch asus_acpi-dont-printk-on-writing-garbage-to-proc-files.patch git-dvb.patch git-ieee1394.patch config_pm=n-slim-drivers-pcmcia.patch i82092-wire-up-errors-from-pci_register_driver.patch git-serial.patch git-scsi-misc.patch megaraid-fix-warnings-when-config_proc_fs=n.patch kmemdup-introduce.patch kmemdup-some-users.patch create-fs-utimesc.patch proper-flags-type-of-spin_lock_irqsave.patch remove-null-check-in-register_nls.patch make-kmem_cache_destroy-return-void-ecryptfs.patch config_pm=n-slim-drivers-ide-pci-sc1200c.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html