The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=4e31059f80d162a1f496f25ef297268d47614dd2
commit 4e31059f80d162a1f496f25ef297268d47614dd2 Author: Mark Johnston <[email protected]> AuthorDate: 2025-05-23 15:35:05 +0000 Commit: Mark Johnston <[email protected]> CommitDate: 2025-11-19 20:47:50 +0000 namei: Remove a now-unused variable Reported by: bapt Fixes: 7587f6d4840f ("namei: Make stackable filesystems check harder for jail roots") (cherry picked from commit 14ec281a09d7818def2083ef0c3e28f8101f4268) --- 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
