1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Fix incorrect m_free - m_freem() usage.

This commit is contained in:
Luigi Rizzo 2002-04-04 06:00:21 +00:00
parent 7d3e4c6e71
commit 2dfe320036
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=93750

View File

@ -296,16 +296,15 @@ arc_frag_next(ifp)
/* we CAN'T have short packets here */
ac->curr_frag = m_split(m, 504, M_DONTWAIT);
if (ac->curr_frag == 0) {
m_free(m);
m_freem(m);
return 0;
}
M_PREPEND(m, ARC_HDRNEWLEN, M_DONTWAIT);
if (m == 0) {
m_free(ac->curr_frag);
m_freem(ac->curr_frag);
ac->curr_frag = 0;
m_free(m);
return 0;
}