mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
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>
This commit is contained in:
parent
ab5d6dd9c9
commit
2a0abc320a
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user