svn commit: r338333 - stable/11/sys/netgraph

Alexander Motin mav at FreeBSD.org
Mon Aug 27 03:42:21 UTC 2018


Author: mav
Date: Mon Aug 27 03:42:19 2018
New Revision: 338333
URL: https://svnweb.freebsd.org/changeset/base/338333

Log:
  MFC r338105: Remove extra M_ZERO from NG_MKRESPONSE() argument.
  
  NG_MKRESPONSE() sets M_ZERO by itself.
  
  Submitted by: Dmitry Luhtionov <dmitryluhtionov at gmail.com>

Modified:
  stable/11/sys/netgraph/ng_base.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netgraph/ng_base.c
==============================================================================
--- stable/11/sys/netgraph/ng_base.c	Mon Aug 27 03:32:40 2018	(r338332)
+++ stable/11/sys/netgraph/ng_base.c	Mon Aug 27 03:42:19 2018	(r338333)
@@ -2665,7 +2665,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lastho
 		IDHASH_RLOCK();
 		/* Get response struct. */
 		NG_MKRESPONSE(resp, msg, sizeof(*nl) +
-		    (V_ng_nodes * sizeof(struct nodeinfo)), M_NOWAIT | M_ZERO);
+		    (V_ng_nodes * sizeof(struct nodeinfo)), M_NOWAIT);
 		if (resp == NULL) {
 			IDHASH_RUNLOCK();
 			error = ENOMEM;


More information about the svn-src-stable-11 mailing list