diff options
author | pjd <pjd@FreeBSD.org> | 2012-12-01 08:51:40 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-12-01 08:51:40 +0000 |
commit | ad5e7d941b99ea2002de76ac132fe04110af64b5 (patch) | |
tree | 9d7c5136e0155be100b9bb0f9b40df422a6fcade /sys/security | |
parent | a0ad8432c780a7dd6440d4194a7f24d9edf38019 (diff) | |
download | FreeBSD-src-ad5e7d941b99ea2002de76ac132fe04110af64b5.zip FreeBSD-src-ad5e7d941b99ea2002de76ac132fe04110af64b5.tar.gz |
IFp4 @219811:
VFS is now fully MPSAFE, fix compilation.
Diffstat (limited to 'sys/security')
-rw-r--r-- | sys/security/audit/audit_bsm_klib.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/security/audit/audit_bsm_klib.c b/sys/security/audit/audit_bsm_klib.c index 45cc56a..5f5d58b 100644 --- a/sys/security/audit/audit_bsm_klib.c +++ b/sys/security/audit/audit_bsm_klib.c @@ -468,7 +468,7 @@ audit_canon_path(struct thread *td, int dirfd, char *path, char *cpath) char *rbuf, *fbuf, *copy; struct filedesc *fdp; struct sbuf sbf; - int error, needslash, vfslocked; + int error, needslash; WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "%s: at %s:%d", __func__, __FILE__, __LINE__); @@ -504,9 +504,7 @@ audit_canon_path(struct thread *td, int dirfd, char *path, char *cpath) return; } vhold(cvnp); - vfslocked = VFS_LOCK_GIANT(cvnp->v_mount); vrele(cvnp); - VFS_UNLOCK_GIANT(vfslocked); } needslash = (fdp->fd_rdir != cvnp); } else { |