Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26808d3f authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

nfsd: cleanup nfsd module initialization cleanup



Handle the failure case here with something closer to the standard
kernel style.

Doesn't really matter for now, but I'd like to add a few more failure
cases, and then this'll help.

Acked-by: default avatarNeilBrown <neilb@suse.de>
Signed-off-by: default avatarJ. Bruce Fields <bfields@citi.umich.edu>
parent 46b25895
Loading
Loading
Loading
Loading
+12 −10
Original line number Diff line number Diff line
@@ -694,7 +694,10 @@ static int __init init_nfsd(void)
			entry->proc_fops =  &exports_operations;
	}
	retval = register_filesystem(&nfsd_fs_type);
	if (retval) {
	if (retval)
		goto out_free_all;
	return 0;
out_free_all:
	nfsd_idmap_shutdown();
	nfsd_export_shutdown();
	nfsd_cache_shutdown();
@@ -703,7 +706,6 @@ static int __init init_nfsd(void)
	nfsd_stat_shutdown();
	nfsd_lockd_shutdown();
	nfsd4_free_slabs();
	}
	return retval;
}