]> git.baikalelectronics.ru Git - kernel.git/commit
wireless: convert reg_regdb_search_lock to mutex
authorJohn W. Linville <linville@tuxdriver.com>
Tue, 16 Mar 2010 19:40:59 +0000 (15:40 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 30 Mar 2010 19:37:20 +0000 (15:37 -0400)
commit5877330f2bbc072a74a0ecf97c20c0fe58169c86
treee8e05e1e6a34583f31203c29c03dcf9f6c036aeb
parent234af6f263821132d1fb142e6f4d89f25334229b
wireless: convert reg_regdb_search_lock to mutex

Stanse discovered that kmalloc is being called with GFP_KERNEL while
holding this spinlock.  The spinlock can be a mutex instead, which also
enables the removal of the unlock/lock around the lock/unlock of
cfg80211_mutex and the call to set_regdom.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Cc: stable@kernel.org
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/reg.c