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:41:28 +0000 (19:41 +0200)
commitc300c98a94b46f8354b427359a2010c9093dd290
tree385b1027dd089f62907b2fe50793cb7a4b8986e0
parent575260507647bbdc86ae11299054f474a1de1d61
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