git: 4586c4f50067 - releng/13.5 - namei: Remove a now-unused variable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 27 Jan 2026 19:16:40 UTC
The branch releng/13.5 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=4586c4f50067193f251d47938b266443d54a728d
commit 4586c4f50067193f251d47938b266443d54a728d
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-05-23 15:35:05 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-01-27 16:55:52 +0000
namei: Remove a now-unused variable
Approved by: so
Reported by: bapt
Fixes: 7587f6d4840f ("namei: Make stackable filesystems check harder for jail roots")
(cherry picked from commit 14ec281a09d7818def2083ef0c3e28f8101f4268)
(cherry picked from commit 4e31059f80d162a1f496f25ef297268d47614dd2)
---
sys/kern/vfs_cache.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
index 7f3a3c9532f1..211363bbc43b 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -5126,16 +5126,14 @@ static int __noinline
cache_fplookup_dotdot(struct cache_fpl *fpl)
{
struct nameidata *ndp;
- struct componentname *cnp;
struct namecache *ncp;
struct vnode *dvp;
u_char nc_flag;
ndp = fpl->ndp;
- cnp = fpl->cnp;
dvp = fpl->dvp;
- MPASS(cache_fpl_isdotdot(cnp));
+ MPASS(cache_fpl_isdotdot(fpl->cnp));
/*
* XXX this is racy the same way regular lookup is