Skip to content

Commit

Permalink
wlcore: release lock on error in wl1271_op_suspend()
Browse files Browse the repository at this point in the history
We should release this lock before returning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed May 15, 2012
1 parent b95d7ce commit cd840f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1629,6 +1629,7 @@ static int wl1271_op_suspend(struct ieee80211_hw *hw,
wl12xx_for_each_wlvif(wl, wlvif) {
ret = wl1271_configure_suspend(wl, wlvif, wow);
if (ret < 0) {
mutex_unlock(&wl->mutex);
wl1271_warning("couldn't prepare device to suspend");
return ret;
}
Expand Down

0 comments on commit cd840f6

Please sign in to comment.