From c1974ebb47ff831630c55cdf55959d37b234a2ee Mon Sep 17 00:00:00 2001 From: bmilekic Date: Tue, 3 Oct 2000 02:23:35 +0000 Subject: 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! --- sys/sys/mbuf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index ed6344c..2d49f1b 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -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) -- cgit v1.1