]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: automatically free sta struct when insertion fails
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 1 Apr 2008 13:21:00 +0000 (15:21 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 1 Apr 2008 21:14:10 +0000 (17:14 -0400)
commiteea6b5c3400e603af856bc8a7757fc70f8187b43
tree415d4f11449452822bdd1a97760de67ffd8c452d
parent9ec32a3492e98f00dc0b4ce0982989beedc39b2b
mac80211: automatically free sta struct when insertion fails

When STA structure insertion fails, it has been allocated but isn't
really alive yet, it isn't reachable by any other code and also can't
yet have much configured. This patch changes the code so that when
the insertion fails, the resulting STA pointer is no longer valid
because it is freed.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/cfg.c
net/mac80211/ieee80211.c
net/mac80211/ieee80211_sta.c
net/mac80211/mesh_plink.c
net/mac80211/sta_info.c