svn commit: r338105 - head/sys/netgraph

Alexander Motin mav at FreeBSD.org
Mon Aug 20 14:35:55 UTC 2018


Author: mav
Date: Mon Aug 20 14:35:54 2018
New Revision: 338105
URL: https://svnweb.freebsd.org/changeset/base/338105

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

Modified:
  head/sys/netgraph/ng_base.c

Modified: head/sys/netgraph/ng_base.c
==============================================================================
--- head/sys/netgraph/ng_base.c	Mon Aug 20 14:27:37 2018	(r338104)
+++ head/sys/netgraph/ng_base.c	Mon Aug 20 14:35:54 2018	(r338105)
@@ -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-all mailing list