]> git.baikalelectronics.ru Git - kernel.git/commit
wlcore: correctly check state before regdomain conf
authorArik Nemtsov <arik@wizery.com>
Tue, 12 Mar 2013 15:19:45 +0000 (17:19 +0200)
committerLuciano Coelho <coelho@ti.com>
Mon, 25 Mar 2013 10:33:13 +0000 (12:33 +0200)
commit633f3e0dbaa83832cb45b4a34b710cb1b33cd1a5
treeae3e76a49dc4e6907ab2c71c60011774c51ea59b
parent32fb657f84d097b0e9a395b7a079d28abc97ec6c
wlcore: correctly check state before regdomain conf

The wlcore state was checked without the mutex being taken. This leads
to WARN_ONs sometimes if a notification arrives when the driver
is on, but the mutex is only taken after it is off. This usually
happens if stopping the driver while connected to a network.

Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/ti/wlcore/main.c