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

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;
/*