mac80211: fix station destruction problem
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 6 Apr 2010 09:18:43 +0000 (11:18 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Apr 2010 18:38:00 +0000 (14:38 -0400)
commite64b379574d6c92c15b4239ee0a5173317176547
treef0fff7261109f18c8063f7aa38736df685fa3713
parent1c3652a5732879263aeebe606ca7af9e66fe0b2f
mac80211: fix station destruction problem

When a station w/o a key is destroyed, or when
a driver submits work for a station and thereby
references it again, it seems like potentially
we could reference the station structure while
it is being destroyed.

Wait for an RCU grace period to elapse before
finishing destroying the station after we have
removed the station from the driver and from
the hash table etc., even in the case where no
key is associated with the station.

Also, there's no point in deleting the plink
timer here since it'll be properly deleted just
a bit later.

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