From e475ce8d82c5c2acebf1e244122c3d331b261156 Mon Sep 17 00:00:00 2001 From: glebius Date: Wed, 28 May 2014 13:15:14 +0000 Subject: Use M_WAITOK for the NGM_PIPE_SET_CFG control message. We expect it to arrive from userland only. Submitted by: Dmitry Luhtionov --- sys/netgraph/ng_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netgraph/ng_pipe.c') diff --git a/sys/netgraph/ng_pipe.c b/sys/netgraph/ng_pipe.c index 72c3b87..ceb3a4e 100644 --- a/sys/netgraph/ng_pipe.c +++ b/sys/netgraph/ng_pipe.c @@ -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; /* -- cgit v1.1