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:
Bosko Milekic 2000-10-03 02:23:35 +00:00
parent da701298c0
commit 2bcf21c0cc

View File

@ -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)