diff options
author | bmilekic <bmilekic@FreeBSD.org> | 2000-10-03 02:23:35 +0000 |
---|---|---|
committer | bmilekic <bmilekic@FreeBSD.org> | 2000-10-03 02:23:35 +0000 |
commit | c1974ebb47ff831630c55cdf55959d37b234a2ee (patch) | |
tree | 64e46311b54a88a7be7ac17c68e3979504e80ccc | |
parent | 01476c6091e1afde9154ee32318f5d375b352a53 (diff) | |
download | FreeBSD-src-c1974ebb47ff831630c55cdf55959d37b234a2ee.zip FreeBSD-src-c1974ebb47ff831630c55cdf55959d37b234a2ee.tar.gz |
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!
-rw-r--r-- | sys/sys/mbuf.h | 4 |
1 files 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) |