summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2026-10-10 16:35:43 +0200
committerJohannes Berg <johannes.berg@intel.com>2026-10-13 13:58:16 +0200
commit2a0abc320a806ce982b24b7e4610285ab4d6461a (patch)
treec2d3f5105293a601d4c2ad132079d29a776fffc2 /net
parentab5d6dd9c9b0b9ce40d687a79e62314a9f8cafbf (diff)
wifi: nl80211: fix BSS reference leak
In case nl80211_process_links() returns an error during a multi-link reconfiguration request, BSS entries might leak (if it already has one but fails on a further link). Fix it by jumping to the out label that handles this. Link: https://patch.msgid.link/20261010143543.184032-2-johannes@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 948113050b50..17a58e4baddc 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -19931,7 +19931,7 @@ static int nl80211_assoc_ml_reconf(struct sk_buff *skb, struct genl_info *info)
IEEE80211_MLD_MAX_NUM_LINKS,
NULL, 0, info);
if (err)
- return err;
+ goto out;
for (link_id = 0; link_id < IEEE80211_MLD_MAX_NUM_LINKS;
link_id++) {