Use M_WAITOK for the NGM_PIPE_SET_CFG control message. We expect it to

arrive from userland only.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov gmail.com>
This commit is contained in:
Gleb Smirnoff 2014-05-28 13:15:14 +00:00
parent 7cadd9874f
commit 563790a28e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=266806

View File

@ -471,7 +471,7 @@ parse_cfg(struct ng_pipe_hookcfg *current, struct ng_pipe_hookcfg *new,
if (hinfo->ber_p == NULL)
hinfo->ber_p =
malloc((MAX_FSIZE + MAX_OHSIZE) * sizeof(uint64_t),
M_NG_PIPE, M_NOWAIT);
M_NG_PIPE, M_WAITOK);
current->ber = new->ber;
/*