Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Mar 2021 23:43:01 GMT
From:      "Alexander V. Chernikov" <melifaro@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 0c2a0e038002 - main - Fix typo in the 9fa8d1582b44b4850d40699c9adb104732328b7d.
Message-ID:  <202103292343.12TNh1fk091711@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c2a0e038002cba423161aeed8f358ffb4fb2836

commit 0c2a0e038002cba423161aeed8f358ffb4fb2836
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2021-03-29 23:42:27 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2021-03-29 23:42:48 +0000

    Fix typo in the 9fa8d1582b44b4850d40699c9adb104732328b7d.
    
    Reported by:    cy
---
 sys/net/route/nhgrp_ctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/net/route/nhgrp_ctl.c b/sys/net/route/nhgrp_ctl.c
index 2896730458b5..49866499ac86 100644
--- a/sys/net/route/nhgrp_ctl.c
+++ b/sys/net/route/nhgrp_ctl.c
@@ -806,7 +806,7 @@ nhgrp_dump_sysctl(struct rib_head *rh, struct sysctl_req *w)
 	sz = sizeof(struct rt_msghdr) + sizeof(struct nhgrp_external);
 	sz += 2 * sizeof(struct nhgrp_container);
 	sz += 2 * sizeof(struct nhgrp_nhop_external) * RIB_MAX_MPATH_WIDTH;
-	buffer = malloc(sz, M_TEMP, M_MOWAIT);
+	buffer = malloc(sz, M_TEMP, M_NOWAIT);
 	if (buffer == NULL)
 		return (ENOMEM);
 



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