mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Add the witness warning for free_unr. Function could sleep, thus callers
shall not have any non-sleepable locks held. Submitted by: Hans Petter Selasky <hselasky c2i net> Approved by: re (kensmith)
This commit is contained in:
parent
b76d072be1
commit
7550e3eac4
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue