summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/subr_mbpool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_mbpool.c b/sys/kern/subr_mbpool.c
index 400c6da25065..ab80a5e4572f 100644
--- a/sys/kern/subr_mbpool.c
+++ b/sys/kern/subr_mbpool.c
@@ -338,7 +338,7 @@ mbp_count(struct mbpool *p, u_int *used, u_int *card, u_int *free)
}
mtx_lock(&p->free_lock);
SLIST_FOREACH(cf, &p->free_list, link)
- *free++;
+ (*free)++;
mtx_unlock(&p->free_lock);
}