From ad5e7d941b99ea2002de76ac132fe04110af64b5 Mon Sep 17 00:00:00 2001 From: pjd Date: Sat, 1 Dec 2012 08:51:40 +0000 Subject: [PATCH] IFp4 @219811: VFS is now fully MPSAFE, fix compilation. --- sys/security/audit/audit_bsm_klib.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/security/audit/audit_bsm_klib.c b/sys/security/audit/audit_bsm_klib.c index 45cc56a55ea0..5f5d58bdff28 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 {