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)
Mon, Nov 17, 5:38 PM
Unknown Object (File)
Thu, Nov 6, 5:51 AM
Unknown Object (File)
Sat, Nov 1, 3:54 AM
Unknown Object (File)
Oct 27 2025, 4:31 AM
Unknown Object (File)
Oct 14 2025, 3:28 PM
Unknown Object (File)
Oct 11 2025, 2:57 PM
Unknown Object (File)
Oct 11 2025, 6:35 AM
Unknown Object (File)
Oct 5 2025, 9:46 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