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, Jun 30, 3:39 PM
Unknown Object (File)
May 30 2026, 5:43 AM
Unknown Object (File)
May 29 2026, 3:11 PM
Unknown Object (File)
May 29 2026, 12:36 PM
Unknown Object (File)
May 29 2026, 11:00 AM
Unknown Object (File)
May 28 2026, 8:37 PM
Unknown Object (File)
May 26 2026, 6:35 PM
Unknown Object (File)
May 18 2026, 9:48 AM

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