Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 May 2014 13:15:14 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r266806 - head/sys/netgraph
Message-ID:  <201405281315.s4SDFEvc061176@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 
 		/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405281315.s4SDFEvc061176>