mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
IFp4 @219811:
VFS is now fully MPSAFE, fix compilation.
This commit is contained in:
parent
e5d63a99bc
commit
ceaea52f0c
1 changed files with 1 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue