summaryrefslogtreecommitdiffstats
path: root/sys/security/audit/audit_bsm_klib.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/security/audit/audit_bsm_klib.c')
-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 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 {
OpenPOWER on IntegriCloud