wifi: rtw88: unlock on error path in rtw_ops_add_interface()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 3 May 2023 15:09:55 +0000 (18:09 +0300)
committerKalle Valo <kvalo@kernel.org>
Thu, 11 May 2023 13:17:53 +0000 (16:17 +0300)
commite2ff1181b3d48257aab26bfd2165f3c7d271499f
treef2265d4dfbe98b31d10758d7ea9a3d9543fe7442
parent7acd69507088b968beda8c2693591211fab333df
wifi: rtw88: unlock on error path in rtw_ops_add_interface()

Call mutex_unlock(&rtwdev->mutex); before returning on this error path.

Fixes: f0e741e4ddbc ("wifi: rtw88: add bitmap for dynamic port settings")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/ddd10a74-5982-4f65-8c59-c1cca558d239@kili.mountain
drivers/net/wireless/realtek/rtw88/mac80211.c