git: sys/vfs/hammer2: Fix potential NULL dereference

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Tue Apr 8 00:52:22 PDT 2025


commit dff4f0d54eca1adc998dfea42125f9c4a23ab56f
Author: Tomohiro Kusumi <tkusumi at netbsd.org>
Date:   Tue Apr 8 00:45:01 2025 -0700

    sys/vfs/hammer2: Fix potential NULL dereference
    
    These two are passing NULL pointer for hammer2_chain_t*.
    
    Note that this won't happen since hammer2_inode_chain_and_parent()
    with a similar logic bug will NULL dereference the chain first,
    and that won't happen either since clindex is currently always 0.

Summary of changes:
 sys/vfs/hammer2/hammer2_chain.c | 3 ---
 1 file changed, 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/dff4f0d54eca1adc998dfea42125f9c4a23ab56f


-- 
DragonFly BSD source repository


More information about the Commits mailing list