projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e9c3af
)
wifi: nl80211: set BSS to NULL if IS_ERR()
author
Johannes Berg
<johannes.berg@intel.com>
Thu, 7 Jul 2022 13:03:51 +0000
(15:03 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:19 +0000
(11:43 +0200)
If the BSS lookup returned an error, set it to NULL so we
don't try to free it.
Fixes: d648c23024bd ("wifi: nl80211: support MLO in auth/assoc")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c
patch
|
blob
|
history
diff --git
a/net/wireless/nl80211.c
b/net/wireless/nl80211.c
index 35fb2b0517d9514e2b88a0c5d9fddc7316dfcb7e..b75398f0d5b46e16e2063b14f045d138d73e306d 100644
(file)
--- a/
net/wireless/nl80211.c
+++ b/
net/wireless/nl80211.c
@@
-10767,6
+10767,7
@@
static int nl80211_associate(struct sk_buff *skb, struct genl_info *info)
&bssid);
if (IS_ERR(req.links[link_id].bss)) {
err = PTR_ERR(req.links[link_id].bss);
+ req.links[link_id].bss = NULL;
goto free;
}