svn commit: r266806 - head/sys/netgraph

Gleb Smirnoff glebius at FreeBSD.org
Wed May 28 13:15:15 UTC 2014


Author: glebius
Date: Wed May 28 13:15:14 2014
New Revision: 266806
URL: http://svnweb.freebsd.org/changeset/base/266806

Log:
  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>

Modified:
  head/sys/netgraph/ng_pipe.c

Modified: head/sys/netgraph/ng_pipe.c
==============================================================================
--- head/sys/netgraph/ng_pipe.c	Wed May 28 13:06:53 2014	(r266805)
+++ head/sys/netgraph/ng_pipe.c	Wed May 28 13:15:14 2014	(r266806)
@@ -471,7 +471,7 @@ parse_cfg(struct ng_pipe_hookcfg *curren
 		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;
 
 		/*


More information about the svn-src-head mailing list