From 13fc6aacdaba1a2e59cc98696417bc654596e71f Mon Sep 17 00:00:00 2001 From: stsp Date: Thu, 29 Feb 2024 11:42:31 +0000 Subject: [PATCH] plug a node reference leak in qwx_mgmt_rx_event() This leak is of little consequence in station mode, but would be problematic in hostap mode. --- sys/dev/ic/qwx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/ic/qwx.c b/sys/dev/ic/qwx.c index 193fdae1420..0382346eb15 100644 --- a/sys/dev/ic/qwx.c +++ b/sys/dev/ic/qwx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: qwx.c,v 1.52 2024/02/24 15:21:39 cheloha Exp $ */ +/* $OpenBSD: qwx.c,v 1.53 2024/02/29 11:42:31 stsp Exp $ */ /* * Copyright 2023 Stefan Sperling @@ -12793,6 +12793,7 @@ qwx_mgmt_rx_event(struct qwx_softc *sc, struct mbuf *m) } #endif ieee80211_input(ifp, m, ni, &rxi); + ieee80211_release_node(ic, ni); exit: #ifdef notyet rcu_read_unlock(); -- 2.20.1