git: net: Fix my mistake in rt_msg_mbuf()

Aaron LI aly at crater.dragonflybsd.org
Mon Jan 1 18:22:13 PST 2024


commit b5901ce29193c73a1ef3273958deea908106168f
Author: Aaron LI <aly at aaronly.me>
Date:   Mon Jan 1 21:25:24 2024 +0800

    net: Fix my mistake in rt_msg_mbuf()
    
    The given rtinfo->rti_info[] array can be empty, and hence no
    m_copydata2() will be called to properly update the 'm_pkthdr.len' and
    'm_len' fields.  This was breaking WiFi (at least iwm, and very likely
    others).  Bring back the 'm_pkthdr.len' and 'm_len' assignments that was
    removed in my previous commit 44647b48cc48ca54dc839a0c8652cd4960416c2b.
    
    Reported-by: Kentish, noob237 (Gonzalo Nemmi)
    Investigated-by: dillon

Summary of changes:
 sys/net/rtsock.c | 1 +
 1 file changed, 1 insertion(+)

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


-- 
DragonFly BSD source repository


More information about the Commits mailing list