summaryrefslogtreecommitdiffstats
path: root/sys/netgraph
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-05-28 13:15:14 +0000
committerglebius <glebius@FreeBSD.org>2014-05-28 13:15:14 +0000
commite475ce8d82c5c2acebf1e244122c3d331b261156 (patch)
tree54808e5cf8a4f8b4e0f4cb8ad8cf7167d188d8ff /sys/netgraph
parent074c44c3f9b916dae7f25e70572d32c1b0b31393 (diff)
downloadFreeBSD-src-e475ce8d82c5c2acebf1e244122c3d331b261156.zip
FreeBSD-src-e475ce8d82c5c2acebf1e244122c3d331b261156.tar.gz
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>
Diffstat (limited to 'sys/netgraph')
-rw-r--r--sys/netgraph/ng_pipe.c2
1 files changed, 1 insertions, 1 deletions
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;
/*
OpenPOWER on IntegriCloud