Skip to content

Commit 46b2589

Browse files
author
J. Bruce Fields
committed
knfsd: cleanup nfsd4 properly on module init failure
We forgot to shut down the nfs4 state and idmapping code in this case. Acked-by: NeilBrown <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent ca2a05a commit 46b2589

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfsd/nfsctl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,12 +695,14 @@ static int __init init_nfsd(void)
695695
}
696696
retval = register_filesystem(&nfsd_fs_type);
697697
if (retval) {
698+
nfsd_idmap_shutdown();
698699
nfsd_export_shutdown();
699700
nfsd_cache_shutdown();
700701
remove_proc_entry("fs/nfs/exports", NULL);
701702
remove_proc_entry("fs/nfs", NULL);
702703
nfsd_stat_shutdown();
703704
nfsd_lockd_shutdown();
705+
nfsd4_free_slabs();
704706
}
705707
return retval;
706708
}

0 commit comments

Comments
 (0)