git: eae0129ba7d0 - stable/14 - mb_unmapped_to_ext(): fix m_free()/m_freem() use
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 17 Mar 2025 00:48:52 UTC
The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=eae0129ba7d0d69acf541da28e58f8035c411f31 commit eae0129ba7d0d69acf541da28e58f8035c411f31 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-03-06 17:36:56 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-03-17 00:48:32 +0000 mb_unmapped_to_ext(): fix m_free()/m_freem() use (cherry picked from commit c5a96f09df32810319d39cb905662ad7504ecd7b) --- sys/kern/kern_mbuf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index 0a9cb72222c2..a740c31789a1 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -950,7 +950,7 @@ _mb_unmapped_to_ext(struct mbuf *m, struct mbuf **mres) if (m->m_epg_tls != NULL) { /* can't convert TLS mbuf */ - m_freem(m); + m_free(m); *mres = NULL; return (EINVAL); } @@ -1098,7 +1098,7 @@ mb_unmapped_to_ext(struct mbuf *top, struct mbuf **mres) error = _mb_unmapped_to_ext(m, &m1); if (error != 0) { if (top != m) - m_free(top); + m_freem(top); m_freem(next); *mres = NULL; return (error);