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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:43:44 +0000 (19:43 +0200)
commit8663a3619807f685813658608c1addff2c9cd22f
tree27f1797f80bc94bf78380817983d9fda76d8c2b7
parentecdb33c0ae9372c7ba75308a84e0811e80816822
cw1200: fix missing unlock on error in cw1200_hw_scan()

commit 51c8d24101c79ffce3e79137e2cee5dfeb956dd7 upstream.

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

Fixes: 4f68ef64cd7f ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/st/cw1200/scan.c