Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4db7c0be authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman
Browse files

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



Fix a double lock bug in SetPSModeWorkItemCallback().

Fixes: 5c2ba8b8 ("rtl8712: pwrctrl_priv: Replace semaphore lock with mutex")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e30ed33d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}
}