aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBosko Milekic <bmilekic@FreeBSD.org>2002-03-03 22:10:04 +0000
committerBosko Milekic <bmilekic@FreeBSD.org>2002-03-03 22:10:04 +0000
commit5a4f14708992cf51afa9f871fc90abe31fa587f8 (patch)
tree74d3cc379fedcaccb7bcffc437149e5d4ba5cb31
parent5b4455186e41de0ac195d242fba8a59225df647e (diff)
Notes
-rw-r--r--sys/kern/subr_mbuf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/subr_mbuf.c b/sys/kern/subr_mbuf.c
index ebd06d4a7c3f..da86199b5a45 100644
--- a/sys/kern/subr_mbuf.c
+++ b/sys/kern/subr_mbuf.c
@@ -611,9 +611,7 @@ mb_alloc(struct mb_lstmngr *mb_list, int how, short type)
MB_UNLOCK_CONT(gen_list);
bucket = mb_pop_cont(mb_list, how, cnt_lst);
if (bucket != NULL) {
- bucket->mb_numfree--;
- m = bucket->mb_free[(bucket->mb_numfree)];
- (*(cnt_lst->mb_cont.mc_objcount))--;
+ MB_GET_OBJECT(m, bucket, cnt_lst);
MB_MBTYPES_INC(cnt_lst, type, 1);
MB_UNLOCK_CONT(cnt_lst);
} else {