]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
mac80211: fix key hwaccel race
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 9 Apr 2008 14:45:37 +0000 (16:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 16 Apr 2008 18:53:22 +0000 (14:53 -0400)
commit3a245766901a9dfdc3f53457a7954b369b50f281
tree33bc4ef4dfb1bdf0eec46d320fd4333f55dffaf8
parent51e8b885902fc8cc2ded48322ad9402bbcff23fe
mac80211: fix key hwaccel race

The previous key locking patch left a small race: it would be possible
to add a key and take the interface down before the key todo is run so
that hwaccel for that key is enabled on an interface that is down. Avoid
this by running the todo list when an interface is brought up or down.

This patch also fixes a small bug: before this change, a few functions
used the key list without the lock that protects it.

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