From 8805f3d7be2ce01a2f80c6a33b4cd84e6632a81d Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Mon, 20 Aug 2018 14:35:54 +0000 Subject: [PATCH] Remove extra M_ZERO from NG_MKRESPONSE() argument. NG_MKRESPONSE() sets M_ZERO by itself. Submitted by: Dmitry Luhtionov MFC after: 1 week --- sys/netgraph/ng_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 88b0d090cdf0..a3ff2532ecbd 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -2665,7 +2665,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook) 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;