fix some madwifi-testing bugs
[openwrt.git] / package / madwifi / patches-r3776 / 323-crash_fix.patch
1 Index: madwifi-trunk-r3776/net80211/ieee80211_node.c
2 ===================================================================
3 --- madwifi-trunk-r3776.orig/net80211/ieee80211_node.c 2008-07-17 02:56:18.000000000 +0200
4 +++ madwifi-trunk-r3776/net80211/ieee80211_node.c 2008-07-17 04:05:43.000000000 +0200
5 @@ -1999,11 +1999,13 @@
6 /* From this point onwards we can no longer find the node,
7 * so no more references are generated
8 */
9 - ieee80211_remove_wds_addr(nt, ni->ni_macaddr);
10 - ieee80211_del_wds_node(nt, ni);
11 - IEEE80211_NODE_TABLE_LOCK_IRQ(nt);
12 - node_table_leave_locked(nt, ni);
13 - IEEE80211_NODE_TABLE_UNLOCK_IRQ(nt);
14 + if (nt) {
15 + ieee80211_remove_wds_addr(nt, ni->ni_macaddr);
16 + ieee80211_del_wds_node(nt, ni);
17 + IEEE80211_NODE_TABLE_LOCK_IRQ(nt);
18 + node_table_leave_locked(nt, ni);
19 + IEEE80211_NODE_TABLE_UNLOCK_IRQ(nt);
20 + }
21
22 /*
23 * If node wasn't previously associated all
This page took 0.052713 seconds and 5 git commands to generate.