kern___acl_aclcheck_path: vrele the vnode after namei()

(cherry picked from commit 7fad17a3e6)
This commit is contained in:
Konstantin Belousov 2025-03-20 19:56:47 +02:00
parent a75dbf4194
commit 09b8745670

View file

@ -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);