Don't destroy a mutex just before we use it, instead,

destroy it after we have used it.
This commit is contained in:
Xin LI 2007-03-23 08:52:36 +00:00
parent 768131d293
commit 1247688a3e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=167830

View File

@ -950,8 +950,8 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam,
return (0);
bad:
mtx_destroy(&nmp->nm_mtx);
nfs_disconnect(nmp);
mtx_destroy(&nmp->nm_mtx);
uma_zfree(nfsmount_zone, nmp);
FREE(nam, M_SONAME);
return (error);