staging: rtl8712: fix double lock bug in SetPSModeWorkItemCallback()

Fix a double lock bug in SetPSModeWorkItemCallback().

Fixes: 5c2ba8b85e ("rtl8712: pwrctrl_priv: Replace semaphore lock with mutex")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Wei Yongjun 2016-09-15 10:12:05 +00:00 committed by Greg Kroah-Hartman
parent e30ed33d19
commit 4db7c0bebd
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ static void SetPSModeWorkItemCallback(struct work_struct *work)
mutex_lock(&pwrpriv->mutex_lock);
if (pwrpriv->pwr_mode == PS_MODE_ACTIVE)
r8712_set_rpwm(padapter, PS_STATE_S4);
mutex_lock(&pwrpriv->mutex_lock);
mutex_unlock(&pwrpriv->mutex_lock);
}
}