Remove extra M_ZERO from NG_MKRESPONSE() argument.
NG_MKRESPONSE() sets M_ZERO by itself. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 1 week
This commit is contained in:
parent
4724d1448f
commit
fd2cf52733
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user