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)
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
Unknown Object (File)
Sun, Mar 15, 6:36 PM
Unknown Object (File)
Wed, Mar 11, 5:12 PM
Unknown Object (File)
Wed, Mar 11, 11:40 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