summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-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 910020d..764f26f 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);
OpenPOWER on IntegriCloud