Page MenuHomeFreeBSD

Fix issues with mb_unmapped_to_ext()
ClosedPublic

Authored by kib on Mar 10 2025, 11:54 AM.
Tags
None
Referenced Files
F151507194: D49305.diff
Wed, Apr 8, 9:55 PM
F151443392: D49305.diff
Wed, Apr 8, 10:56 AM
F151442940: D49305.diff
Wed, Apr 8, 10:52 AM
Unknown Object (File)
Sat, Mar 28, 3:32 PM
Unknown Object (File)
Sat, Mar 28, 11:50 AM
Unknown Object (File)
Sun, Mar 22, 7:15 PM
Unknown Object (File)
Tue, Mar 17, 3:49 PM
Unknown Object (File)
Tue, Mar 17, 7:57 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