]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/nfsd/nfsctl.c
knfsd: cleanup nfsd4 properly on module init failure
[linux-2.6-omap-h63xx.git] / fs / nfsd / nfsctl.c
index 77dc9893b7bab462b65ebd751d9cc0c01273891f..d8d50a773a5bbb38cceca1bb9ee32f056ebf2bcb 100644 (file)
@@ -695,12 +695,14 @@ static int __init init_nfsd(void)
        }
        retval = register_filesystem(&nfsd_fs_type);
        if (retval) {
+               nfsd_idmap_shutdown();
                nfsd_export_shutdown();
                nfsd_cache_shutdown();
                remove_proc_entry("fs/nfs/exports", NULL);
                remove_proc_entry("fs/nfs", NULL);
                nfsd_stat_shutdown();
                nfsd_lockd_shutdown();
+               nfsd4_free_slabs();
        }
        return retval;
 }