]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blobdiff - drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
staging: rtl8723bs: Fix two sleep-in-atomic-context bugs in _rtw_pwr_wakeup()
[mirror_ubuntu-focal-kernel.git] / drivers / staging / rtl8723bs / core / rtw_pwrctrl.c
index 110bbe340b783fe59c4d2f849776d82cb5bd3bbf..59a667753266556a61cbd24c95249ed264d0d839 100644 (file)
@@ -1232,7 +1232,7 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_deffer_ms, const char *cal
        if (pwrpriv->ps_processing) {
                DBG_871X("%s wait ps_processing...\n", __func__);
                while (pwrpriv->ps_processing && jiffies_to_msecs(jiffies - start) <= 3000)
-                       msleep(10);
+                       mdelay(10);
                if (pwrpriv->ps_processing)
                        DBG_871X("%s wait ps_processing timeout\n", __func__);
                else
@@ -1244,7 +1244,7 @@ int _rtw_pwr_wakeup(struct adapter *padapter, u32 ips_deffer_ms, const char *cal
                while (pwrpriv->bInSuspend
                        && jiffies_to_msecs(jiffies - start) <= 3000
                ) {
-                       msleep(10);
+                       mdelay(10);
                }
                if (pwrpriv->bInSuspend)
                        DBG_871X("%s wait bInSuspend timeout\n", __func__);