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, Apr 15, 4:14 AM
Unknown Object (File)
Sun, Apr 6, 6:24 PM
Unknown Object (File)
Tue, Apr 1, 3:09 AM
Unknown Object (File)
Sun, Mar 30, 2:44 AM
Unknown Object (File)
Fri, Mar 28, 3:20 AM
Unknown Object (File)
Mar 19 2025, 5:11 PM
Unknown Object (File)
Mar 19 2025, 2:04 PM
Unknown Object (File)
Mar 18 2025, 5:01 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