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:
Eric van Gyzen 2022-03-04 15:01:06 -06:00
parent cfbb5f8ce0
commit 863070bbf6

View File

@ -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);