summaryrefslogtreecommitdiff
path: root/drivers/hwmon/hwmon-vid.c
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2012-09-03 18:27:58 +0300
committerLuciano Coelho <luca@coelho.fi>2012-09-27 12:13:54 +0300
commitaf390f4dd35373b3ca32bafc12d7f2ad12840529 (patch)
tree692652e15a9aed463e43f40aa351b4d640789faa /drivers/hwmon/hwmon-vid.c
parentab2c4f37dcef5bd517a95a32da50d5ed0cc24cb5 (diff)
wlcore: protect wlcore_op_set_key with mutex
wlcore_op_set_key() calls wl18xx_set_key(), which in turn executes some of his function calls without acquiring wl->mutex and making sure the fw is awake. Adding mutex_lock()/ps_elp_wakeup() calls is not enough, as wl18xx_set_key() calls wl1271_tx_flush() which can't be called while the mutex is taken. Add the required calls to wlcore_op_set_key, but limit the queues_stop and flushing to the only encryption types in which a spare block might be needed (GEM and TKIP). [Arik - move state != ON check] Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Arik Nemtsov <arik@wizery.com> Signed-off-by: Luciano Coelho <luca@coelho.fi>
Diffstat (limited to 'drivers/hwmon/hwmon-vid.c')
0 files changed, 0 insertions, 0 deletions