From: stsp Date: Thu, 29 Feb 2024 11:42:31 +0000 (+0000) Subject: plug a node reference leak in qwx_mgmt_rx_event() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=13fc6aacdaba1a2e59cc98696417bc654596e71f;p=openbsd 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. --- 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();