mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
kern___acl_aclcheck_path: vrele the vnode after namei()
(cherry picked from commit 7fad17a3e6)
This commit is contained in:
parent
a75dbf4194
commit
09b8745670
1 changed files with 1 additions and 0 deletions
|
|
@ -552,6 +552,7 @@ kern___acl_aclcheck_path(struct thread *td, const char *path, acl_type_t type,
|
|||
error = namei(&nd);
|
||||
if (error == 0) {
|
||||
error = vacl_aclcheck(td, nd.ni_vp, type, aclp);
|
||||
vrele(nd.ni_vp);
|
||||
NDFREE_PNBUF(&nd);
|
||||
}
|
||||
return (error);
|
||||
|
|
|
|||
Loading…
Reference in a new issue