wlcore: release lock on error in wl1271_op_suspend()

We should release this lock before returning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
This commit is contained in:
Dan Carpenter 2012-04-16 13:57:02 +03:00 коммит произвёл John W. Linville
Родитель b95d7cef06
Коммит cd840f6a0d
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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;
}