mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
ksiginfo_alloc: pass M_WAITOK or M_NOWAIT to uma_zalloc
It expects exactly one of those flags. A future commit will assert this. Reviewed by: rstone MFC after: 1 month Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D34451
This commit is contained in:
parent
cfbb5f8ce0
commit
863070bbf6
1 changed files with 1 additions and 3 deletions
|
|
@ -292,9 +292,7 @@ ksiginfo_alloc(int wait)
|
|||
{
|
||||
int flags;
|
||||
|
||||
flags = M_ZERO;
|
||||
if (! wait)
|
||||
flags |= M_NOWAIT;
|
||||
flags = M_ZERO | (wait ? M_WAITOK : M_NOWAIT);
|
||||
if (ksiginfo_zone != NULL)
|
||||
return ((ksiginfo_t *)uma_zalloc(ksiginfo_zone, flags));
|
||||
return (NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue