Fix a problem with MCHTYPE macro's use of atomic().
Basically, the reason most people haven't seen this is most likely related to the low usage of MCHTYPE. Pointed out and suggested a fix by: Boris Popov (bp) - thanks!
This commit is contained in:
parent
da701298c0
commit
2bcf21c0cc
@ -587,8 +587,8 @@ struct mcntfree_lst {
|
||||
struct mbuf *_mm = (m); \
|
||||
int _mt = (t); \
|
||||
\
|
||||
atomic_subtract_long(mbtypes[_mm->m_type], 1); \
|
||||
atomic_add_long(mbtypes[_mt], 1); \
|
||||
atomic_subtract_long(&mbtypes[_mm->m_type], 1); \
|
||||
atomic_add_long(&mbtypes[_mt], 1); \
|
||||
_mm->m_type = (_mt); \
|
||||
} while (0)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user