aboutsummaryrefslogtreecommitdiff
path: root/sys/security
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2012-12-01 08:51:40 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2012-12-01 08:51:40 +0000
commitceaea52f0c9cdc7b05ae0a58ded0a2d981dd16ce (patch)
tree9d7c5136e0155be100b9bb0f9b40df422a6fcade /sys/security
parente5d63a99bc94ec37e1d6747c1b3b1c3d2bfcf42d (diff)
Notes
Diffstat (limited to 'sys/security')
-rw-r--r--sys/security/audit/audit_bsm_klib.c4
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 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 {