Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2018 03:42:20 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338333 - stable/11/sys/netgraph
Message-ID:  <201808270342.w7R3gKso093697@repo.freebsd.org>

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



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