wlcore: release lock on error in wl1271_op_suspend()
Subsystems (2)
PATCH 1/1 wlcore: release lock on error in wl1271_op_suspend()
We should release this lock before returning.
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/wireless/ti/wlcore/main.c +1 -0
@@ -1364,6 +1364,7 @@ static int wl1271_op_suspend(struct ieee80211_hw *hw,wl12xx_for_each_wlvif (wl, wlvif) { ret =wl1271_configure_suspend (wl, wlvif);if (ret <0 ) { +mutex_unlock (&wl->mutex);wl1271_warning ("couldn't prepare device to suspend" );return ret; }
Luciano Coelho
AppliedQuoted 3 lines · Dan Carpenter
We should release this lock before returning.
Signed-off-by Dan Carpenter <[email protected]>
Applied, thanks Dan!