summaryrefslogtreecommitdiff
path: root/sys/kern/subr_unit.c
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2007-06-19 13:13:17 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2007-06-19 13:13:17 +0000
commit7550e3eac458765f2e331cff65711ce0ee39e83b (patch)
treec3a2a6d8ce53290fa2c079b5be576b4089239ae1 /sys/kern/subr_unit.c
parentb76d072be186fa7be1d3bcd927c719881a03cec1 (diff)
Notes
Diffstat (limited to 'sys/kern/subr_unit.c')
-rw-r--r--sys/kern/subr_unit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c
index 910020d9c481..764f26f6784e 100644
--- a/sys/kern/subr_unit.c
+++ b/sys/kern/subr_unit.c
@@ -714,6 +714,7 @@ free_unr(struct unrhdr *uh, u_int item)
{
void *p1, *p2;
+ WITNESS_WARN(WARN_GIANTOK | WARN_SLEEPOK, NULL, "free_unr");
p1 = Malloc(sizeof(struct unr));
p2 = Malloc(sizeof(struct unr));
mtx_lock(uh->mtx);