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, Dec 8, 1:39 PM
Unknown Object (File)
Tue, Dec 2, 10:40 PM
Unknown Object (File)
Mon, Dec 1, 9:14 PM
Unknown Object (File)
Mon, Nov 17, 5:38 PM
Unknown Object (File)
Nov 6 2025, 5:51 AM
Unknown Object (File)
Nov 1 2025, 3:54 AM
Unknown Object (File)
Oct 27 2025, 4:31 AM
Unknown Object (File)
Oct 14 2025, 3:28 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 Skipped
Unit
Tests Skipped