Page MenuHomeFreeBSD

D43469.diff
No OneTemporary

D43469.diff

diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c
--- a/sys/net80211/ieee80211_node.c
+++ b/sys/net80211/ieee80211_node.c
@@ -867,11 +867,14 @@
struct ieee80211_node_table *nt = obss->ni_table;
copy_bss(selbs, obss);
- ieee80211_node_decref(obss); /* iv_bss reference */
-
- IEEE80211_NODE_LOCK(nt);
- node_reclaim(nt, obss); /* station table reference */
- IEEE80211_NODE_UNLOCK(nt);
+ if (nt != NULL) {
+ ieee80211_node_decref(obss); /* iv_bss reference */
+ IEEE80211_NODE_LOCK(nt);
+ node_reclaim(nt, obss); /* station table reference */
+ IEEE80211_NODE_UNLOCK(nt);
+ } else {
+ ieee80211_free_node(obss); /* iv_bss reference */
+ }
obss = NULL; /* NB: guard against later use */
}

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 1:43 PM (21 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14659393
Default Alt Text
D43469.diff (748 B)

Event Timeline