git: 6694cb1f5784 - main - netlink: fix if_allocdescr() malloc options argument.

From: Alexander V. Chernikov <melifaro_at_FreeBSD.org>
Date: Fri, 17 Feb 2023 18:16:45 UTC
The branch main has been updated by melifaro:

URL: https://cgit.FreeBSD.org/src/commit/?id=6694cb1f5784d6ceacd684d29b3e3012e1e4e4d5

commit 6694cb1f5784d6ceacd684d29b3e3012e1e4e4d5
Author:     Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2023-02-17 17:35:28 +0000
Commit:     Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-02-17 18:00:37 +0000

    netlink: fix if_allocdescr() malloc options argument.
    
    The current value was based on the initial revision of D37566 and
     was not updated afterwards.
    
    MFC after:      1 day
---
 sys/netlink/route/iface_drivers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/netlink/route/iface_drivers.c b/sys/netlink/route/iface_drivers.c
index e944fe88994e..7cfaa5a6614b 100644
--- a/sys/netlink/route/iface_drivers.c
+++ b/sys/netlink/route/iface_drivers.c
@@ -72,7 +72,7 @@ modify_generic(struct ifnet *ifp, struct nl_parsed_link *lattrs,
 	if (lattrs->ifla_ifalias != NULL) {
 		if (nlp_has_priv(nlp, PRIV_NET_SETIFDESCR)) {
 			int len = strlen(lattrs->ifla_ifalias) + 1;
-			char *buf = if_allocdescr(len, true);
+			char *buf = if_allocdescr(len, M_WAITOK);
 
 			memcpy(buf, lattrs->ifla_ifalias, len);
 			if_setdescr(ifp, buf);