]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbcfd9de4794a38772d3e27c603d469d75ff9dd69
treec0dc3be7d9fd289bc2ff59fdff810c43d4e76549
parentc8db8c5a51be898bf1025fe108bc3740cbc3b8d4
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