diff options
author | delphij <delphij@FreeBSD.org> | 2007-03-23 08:52:36 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2007-03-23 08:52:36 +0000 |
commit | e4435eebbac21c46c486ee9dc9ba68cbe018040c (patch) | |
tree | 2b6243907f64834d3da142f5f28399022f632474 /sys/nfsclient | |
parent | 584a9707550322b0320a4e12ec48d54d96451376 (diff) | |
download | FreeBSD-src-e4435eebbac21c46c486ee9dc9ba68cbe018040c.zip FreeBSD-src-e4435eebbac21c46c486ee9dc9ba68cbe018040c.tar.gz |
Don't destroy a mutex just before we use it, instead,
destroy it after we have used it.
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |