mac80211: fix sta-info pinning
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 8 Apr 2008 11:08:20 +0000 (13:08 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 8 Apr 2008 20:44:45 +0000 (16:44 -0400)
commit7d1559f1737d5ca27b267b0392015f42b3bbe2fa
treec0dc3be7d9fd289bc2ff59fdff810c43d4e76549
parent4d6141c30a2567a85d869d55f579438b3365d719
mac80211: fix sta-info pinning

When a STA is supposed to be unlinked but is pinned, it still needs
to be unlinked from all structures. Only at the end of the unlink
process should we check for pin status and invalidate the callers
reference if it is pinned. Move the pin status check down.

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