git: mbuf(9): Add assertion of 'offset == 0' for m_devget()

Aaron LI aly at crater.dragonflybsd.org
Tue Jan 2 20:02:17 PST 2024


commit 4e4d812deef86c5dc8fc0ea865ab967b79672e2e
Author: Aaron LI <aly at aaronly.me>
Date:   Wed Jan 3 12:01:39 2024 +0800

    mbuf(9): Add assertion of 'offset == 0' for m_devget()
    
    As commented above the m_devget() function, the 'offset' argument is
    ill-defined and unused; all callers should specify 0 for it.  So add an
    assertion for that.
    
    Meanwhile, fix two callers that didn't satisfy this.

Summary of changes:
 sys/dev/netif/ae/if_ae.c   | 2 +-
 sys/dev/netif/ale/if_ale.c | 2 +-
 sys/kern/uipc_mbuf.c       | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4e4d812deef86c5dc8fc0ea865ab967b79672e2e


-- 
DragonFly BSD source repository


More information about the Commits mailing list