mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 14:39:37 +00:00
For the M_PREPEND macro, remove an initial mbuf NULL check I added. It
was added accidentally, and although not terrible, it would improperly hide the bug of calling M_PREPEND with a NULL mbuf argument. Submitted by: jlemon (ISTR)
This commit is contained in:
parent
226f14bc83
commit
26872f7ef2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59793
@ -486,11 +486,6 @@ union mcluster {
|
||||
int _mplen = (plen); \
|
||||
int __mhow = (how); \
|
||||
\
|
||||
if (_mm == NULL) { \
|
||||
MGET(_mm, __mhow, MT_DATA); \
|
||||
if (_mm == NULL) \
|
||||
break; \
|
||||
} \
|
||||
if (M_LEADINGSPACE(_mm) >= _mplen) { \
|
||||
_mm->m_data -= _mplen; \
|
||||
_mm->m_len += _mplen; \
|
||||
|
Loading…
Reference in New Issue
Block a user