Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcb51441 authored by Dan Carpenter's avatar Dan Carpenter Committed by Kalle Valo
Browse files

wlcore: unlock on error in wl1271_op_suspend()



We recently introduced a new error path which needs an unlock.

Fixes: 6d5a748d ('wlcore: add ability to reduce FW interrupts during suspend')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 59b23ebd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1785,8 +1785,10 @@ static int wl1271_op_suspend(struct ieee80211_hw *hw,
	mutex_lock(&wl->mutex);

	ret = wl1271_ps_elp_wakeup(wl);
	if (ret < 0)
	if (ret < 0) {
		mutex_unlock(&wl->mutex);
		return ret;
	}

	wl->wow_enabled = true;
	wl12xx_for_each_wlvif(wl, wlvif) {