ath10k: add missing mutex unlock on failpath
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 19 Aug 2015 11:08:53 +0000 (13:08 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 26 Aug 2015 08:04:26 +0000 (11:04 +0300)
commit503422d95248c1d9698735bb5803b70aa51b18ef
tree218ab8e03119fbdff42ae47394905e0b4ba47c12
parent5db879aefa0ef6dea4fdda268dd94016bc165f3d
ath10k: add missing mutex unlock on failpath

Kernel would complain about leaving a held lock
after going back to userspace and would
subsequently deadlock.

Fixes: e04cafbc38c7 ("ath10k: fix peer limit enforcement")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c