]> www.infradead.org Git - users/dwmw2/linux.git/commit
mac80211: use just spin_lock() in ieee80211_get_tkip_p2k()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 6 May 2013 13:54:58 +0000 (15:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Jun 2013 19:52:24 +0000 (12:52 -0700)
commit524a8e8f658703d0e105bfb48c26edcdefc2aa3c
treee4201a145518a2ca4830c6f088fe11c34dc34845
parent239ab3670a5241414b5e60bf8be0c819468c160c
mac80211: use just spin_lock() in ieee80211_get_tkip_p2k()

commit 655914ab863bcc06c84270e4159fd59002d6b529 upstream.

ieee80211_get_tkip_p2k() may be called with interrupts
disabled, so spin_unlock_bh() isn't safe and leads to
warnings. Since it's always called with BHs disabled
already, just use spin_lock().

Reported-by: Milan Kocian <milon@wq.cz>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/tkip.c