summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2011-08-23 20:44:32 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2011-08-24 17:52:27 (GMT)
commit66cb54bd24086b2d871a03035de9b0e79b2b725e (patch)
tree0d8c6a8790026404bfb18e3bb00f78488a811db4 /drivers/net/wireless/ath/ath9k/main.c
parent7a5e4877c14de0827dbda8efa5080089757a8733 (diff)
downloadlinux-fsl-qoriq-66cb54bd24086b2d871a03035de9b0e79b2b725e.tar.xz
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
0 files changed, 0 insertions, 0 deletions