From 09b874567023e9562d7645b8f9ca3bac8a9112f7 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 20 Mar 2025 19:56:47 +0200 Subject: [PATCH] kern___acl_aclcheck_path: vrele the vnode after namei() (cherry picked from commit 7fad17a3e63481ef71b731b0059cb918aec14f17) --- sys/kern/vfs_acl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/kern/vfs_acl.c b/sys/kern/vfs_acl.c index fb1fc27867d..58b950a04cd 100644 --- a/sys/kern/vfs_acl.c +++ b/sys/kern/vfs_acl.c @@ -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);