From b5e8ac9aa2d4f3106886260e462351f1aad22356 Mon Sep 17 00:00:00 2001 From: avos Date: Wed, 6 Feb 2019 02:18:11 +0000 Subject: [PATCH] MFC r343681: run(4): fix allocated memory type for ieee80211_node(4) PR: 177366 git-svn-id: svn://svn.freebsd.org/base/stable/10@343821 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/usb/wlan/if_run.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c index 293c5d2a7..8b904e7d7 100644 --- a/sys/dev/usb/wlan/if_run.c +++ b/sys/dev/usb/wlan/if_run.c @@ -1987,7 +1987,8 @@ run_read_eeprom(struct run_softc *sc) static struct ieee80211_node * run_node_alloc(struct ieee80211vap *vap, const uint8_t mac[IEEE80211_ADDR_LEN]) { - return malloc(sizeof (struct run_node), M_DEVBUF, M_NOWAIT | M_ZERO); + return malloc(sizeof (struct run_node), M_80211_NODE, + M_NOWAIT | M_ZERO); } static int -- 2.45.0