refresh madwifi-testing patches
[openwrt.git] / package / madwifi / patches-r3776 / 323-crash_fix.patch
1 --- a/net80211/ieee80211_node.c
2 +++ b/net80211/ieee80211_node.c
3 @@ -1999,11 +1999,13 @@
4 /* From this point onwards we can no longer find the node,
5 * so no more references are generated
6 */
7 - ieee80211_remove_wds_addr(nt, ni->ni_macaddr);
8 - ieee80211_del_wds_node(nt, ni);
9 - IEEE80211_NODE_TABLE_LOCK_IRQ(nt);
10 - node_table_leave_locked(nt, ni);
11 - IEEE80211_NODE_TABLE_UNLOCK_IRQ(nt);
12 + if (nt) {
13 + ieee80211_remove_wds_addr(nt, ni->ni_macaddr);
14 + ieee80211_del_wds_node(nt, ni);
15 + IEEE80211_NODE_TABLE_LOCK_IRQ(nt);
16 + node_table_leave_locked(nt, ni);
17 + IEEE80211_NODE_TABLE_UNLOCK_IRQ(nt);
18 + }
19
20 /*
21 * If node wasn't previously associated all
This page took 0.047055 seconds and 5 git commands to generate.