mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Acquire Giant rather than asserting it is held in contigmalloc(). This is
a prerequisite to removing further uses of Giant from UMA.
This commit is contained in:
parent
fa7235b784
commit
17d89a1f67
1 changed files with 2 additions and 1 deletions
|
|
@ -286,9 +286,10 @@ contigmalloc(
|
|||
{
|
||||
void * ret;
|
||||
|
||||
GIANT_REQUIRED;
|
||||
mtx_lock(&Giant);
|
||||
ret = contigmalloc1(size, type, flags, low, high, alignment, boundary,
|
||||
kernel_map);
|
||||
mtx_unlock(&Giant);
|
||||
return (ret);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue