diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-01-15 06:43:40 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2015-01-23 12:37:42 -0500 |
commit | bcb514413e3b0f4d7e40b2f97bbb83a57e09f657 (patch) | |
tree | e92ba491b06522d3166d0a8737c819ca3f3ab2d1 /drivers/net/wireless/ti | |
parent | 59b23ebd7fd0af3facd174e96ee4dbc1494fa215 (diff) |
wlcore: unlock on error in wl1271_op_suspend()
We recently introduced a new error path which needs an unlock.
Fixes: 6d5a748d4836 ('wlcore: add ability to reduce FW interrupts during suspend')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ti')
-rw-r--r-- | drivers/net/wireless/ti/wlcore/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/ti/wlcore/main.c index 0a9d9a1b2d85..1e136993580f 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c | |||
@@ -1785,8 +1785,10 @@ static int wl1271_op_suspend(struct ieee80211_hw *hw, | |||
1785 | mutex_lock(&wl->mutex); | 1785 | mutex_lock(&wl->mutex); |
1786 | 1786 | ||
1787 | ret = wl1271_ps_elp_wakeup(wl); | 1787 | ret = wl1271_ps_elp_wakeup(wl); |
1788 | if (ret < 0) | 1788 | if (ret < 0) { |
1789 | mutex_unlock(&wl->mutex); | ||
1789 | return ret; | 1790 | return ret; |
1791 | } | ||
1790 | 1792 | ||
1791 | wl->wow_enabled = true; | 1793 | wl->wow_enabled = true; |
1792 | wl12xx_for_each_wlvif(wl, wlvif) { | 1794 | wl12xx_for_each_wlvif(wl, wlvif) { |