kernel_optimize_test/drivers/net/wireless/ath/carl9170
Alexey Khoroshilov 66cb54bd24 carl9170: Fix mismatch in carl9170_op_set_key mutex lock-unlock
If is_main_vif(ar, vif) reports that we have to fall back
to software encryption, we goto err_softw; before locking ar->mutex.
As a result, we have unprotected call to carl9170_set_operating_mode
and unmatched mutex_unlock.

The patch fix the issue by adding mutex_lock before goto.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Cc: <stable@kernel.org>
Acked-By: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-08-24 13:52:27 -04:00
..
carl9170.h carl9170: fix sparse warnings enabled by CONFIG_SPARSE_RCU_POINTER 2011-07-20 15:04:37 -04:00
cmd.c
cmd.h carl9170: fix formatting issues found by checkpatch 2011-07-15 13:38:34 -04:00
debug.c carl9170: fix formatting issues found by checkpatch 2011-07-15 13:38:34 -04:00
debug.h
eeprom.h
fw.c carl9170: allow PSM if the 5 GHz band is selected 2011-07-05 15:26:53 -04:00
fwcmd.h
fwdesc.h carl9170 firmware: update firmware headers 2011-07-18 14:29:43 -04:00
hw.h carl9170 firmware: update firmware headers 2011-07-18 14:29:43 -04:00
Kconfig
led.c carl9170: fix formatting issues found by checkpatch 2011-07-15 13:38:34 -04:00
mac.c carl9170: move beacon_update into tx.c 2011-07-18 14:29:43 -04:00
main.c carl9170: Fix mismatch in carl9170_op_set_key mutex lock-unlock 2011-08-24 13:52:27 -04:00
Makefile
phy.c carl9170: fix formatting issues found by checkpatch 2011-07-15 13:38:34 -04:00
phy.h
rx.c
tx.c carl9170: set beacon xmit power to the max 2011-07-18 14:29:44 -04:00
usb.c
version.h
wlan.h