From e4435eebbac21c46c486ee9dc9ba68cbe018040c Mon Sep 17 00:00:00 2001 From: delphij Date: Fri, 23 Mar 2007 08:52:36 +0000 Subject: Don't destroy a mutex just before we use it, instead, destroy it after we have used it. --- sys/nfsclient/nfs_vfsops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys') diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index aa9d9bb..60074cf 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -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); -- cgit v1.1