]> git.baikalelectronics.ru Git - kernel.git/commit
cw1200: fix missing unlock on error in cw1200_hw_scan()
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 22 Dec 2018 10:34:54 +0000 (10:34 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Jan 2019 11:35:02 +0000 (13:35 +0200)
commit29ed91a350ddcd7d1529d874457f2165666ceed1
treec57830d4ecefb07408a2dd76c19a1e2f95bd50df
parent2ed47986438a62ac7afb1d003850d689f6941339
cw1200: fix missing unlock on error in cw1200_hw_scan()

Add the missing unlock before return from function cw1200_hw_scan()
in the error handling case.

Fixes: 08b4f26c19f6 ("cw1200: Fix concurrency use-after-free bugs in cw1200_hw_scan()")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/st/cw1200/scan.c