mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-22 04:23:39 +00:00
rtl8188eu: Fix BUG: sleeping function called from invalid context
A kmalloc call was made with GFP_KERNEL rather than GFP_ATOMIC Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
8eb572bc42
commit
7379b7fee9
1 changed files with 2 additions and 2 deletions
|
@ -969,7 +969,7 @@ u8 rtw_disassoc_cmd(struct adapter *padapter, u32 deauth_timeout_ms, bool enqueu
|
||||||
RT_TRACE(_module_rtl871x_cmd_c_, _drv_notice_, ("+rtw_disassoc_cmd\n"));
|
RT_TRACE(_module_rtl871x_cmd_c_, _drv_notice_, ("+rtw_disassoc_cmd\n"));
|
||||||
|
|
||||||
/* prepare cmd parameter */
|
/* prepare cmd parameter */
|
||||||
param = kzalloc(sizeof(*param), GFP_KERNEL);
|
param = kzalloc(sizeof(*param), GFP_ATOMIC);
|
||||||
if (param == NULL) {
|
if (param == NULL) {
|
||||||
res = _FAIL;
|
res = _FAIL;
|
||||||
goto exit;
|
goto exit;
|
||||||
|
@ -978,7 +978,7 @@ u8 rtw_disassoc_cmd(struct adapter *padapter, u32 deauth_timeout_ms, bool enqueu
|
||||||
|
|
||||||
if (enqueue) {
|
if (enqueue) {
|
||||||
/* need enqueue, prepare cmd_obj and enqueue */
|
/* need enqueue, prepare cmd_obj and enqueue */
|
||||||
cmdobj = kzalloc(sizeof(*cmdobj), GFP_KERNEL);
|
cmdobj = kzalloc(sizeof(*cmdobj), GFP_ATOMIC);
|
||||||
if (cmdobj == NULL) {
|
if (cmdobj == NULL) {
|
||||||
res = _FAIL;
|
res = _FAIL;
|
||||||
kfree(param);
|
kfree(param);
|
||||||
|
|
Loading…
Reference in a new issue