The branch stable/14 has been updated by markj:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=3f4efe392b7039686057838d723a2d43ae144be5

commit 3f4efe392b7039686057838d723a2d43ae144be5
Author:     Mark Johnston <ma...@freebsd.org>
AuthorDate: 2025-05-23 15:35:05 +0000
Commit:     Mark Johnston <ma...@freebsd.org>
CommitDate: 2025-06-30 14:19:30 +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 2c2e18640a76..47f0893dab27 100644
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -5182,16 +5182,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

Reply via email to