git: 09b874567023 - stable/14 - kern___acl_aclcheck_path: vrele the vnode after namei()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 28 Mar 2025 00:46:12 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=09b874567023e9562d7645b8f9ca3bac8a9112f7
commit 09b874567023e9562d7645b8f9ca3bac8a9112f7
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-03-20 17:56:47 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-03-28 00:32:28 +0000
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 fb1fc27867dd..58b950a04cd1 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);