Page MenuHomeFreeBSD

Fix issues with mb_unmapped_to_ext()
ClosedPublic

Authored by kib on Mar 10 2025, 11:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 14, 3:28 PM
Unknown Object (File)
Sat, Oct 11, 2:57 PM
Unknown Object (File)
Sat, Oct 11, 6:35 AM
Unknown Object (File)
Sun, Oct 5, 9:46 PM
Unknown Object (File)
Fri, Oct 3, 9:41 AM
Unknown Object (File)
Sun, Sep 28, 10:20 AM
Unknown Object (File)
Thu, Sep 25, 7:47 PM
Unknown Object (File)
Thu, Sep 18, 8:27 PM

Details

Summary
ip_output(): style


ip_output(): if mb_unmapped_to_ext() failed, return directly

do not free the original mbuf, it is already freed by the
mb_unmapped_to_ext().


mb_unmapped_to_ext(): fix m_free()/m_freem() use

The top of the chain is supposed to be freed in mb_unmapped_to_ext(),
use m_freem().  The _mb_unmapped_to_ext() helper only needs to work on
the passed mbuf, use m_free().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable