mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-18 22:33:39 +00:00
Absense of M_WAITOK in malloc flags for UMA doesn't
equals presense of M_NOWAIT. Specify M_NOWAIT explicitly. This fixes sleeping with PF_LOCK().
This commit is contained in:
parent
f54a3a046e
commit
68270a37c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226656
|
@ -762,7 +762,7 @@ pfsync_state_import(struct pfsync_state *sp, u_int8_t flags)
|
|||
if (flags & PFSYNC_SI_IOCTL)
|
||||
pool_flags = PR_WAITOK | PR_ZERO;
|
||||
else
|
||||
pool_flags = PR_ZERO;
|
||||
pool_flags = PR_NOWAIT | PR_ZERO;
|
||||
|
||||
if ((st = pool_get(&V_pf_state_pl, pool_flags)) == NULL)
|
||||
goto cleanup;
|
||||
|
|
Loading…
Reference in a new issue