staging: r8188eu: Fix scheduling while atomic splat
commit 1335a9516d3d52f157ad87456efdd8dc9ae1747b upstream. Commitfadbe0cd52
("staging: rtl8188eu: Remove rtw_zmalloc(), wrapper for kzalloc()") changed all allocation calls to be GFP_KERNEL even though the original wrapper was testing to determine if the caller was in atomic mode. Most of the mistakes were corrected with commit33dc85c3c6
("staging: r8188eu: Fix scheduling while atomic error introduced in commit fadbe0cd"); however, two kzalloc calls were missed as the call only happens when the driver is shutting down. Fixes:fadbe0cd52
("staging: rtl8188eu: Remove rtw_zmalloc(), wrapper for kzalloc()") Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: navin patidar <navin.patidar@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
fb257da3e8
commit
fb911dfec0
1 changed files with 2 additions and 2 deletions
|
@ -718,13 +718,13 @@ u8 rtw_addbareq_cmd(struct adapter *padapter, u8 tid, u8 *addr)
|
|||
u8 res = _SUCCESS;
|
||||
|
||||
|
||||
ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL);
|
||||
ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC);
|
||||
if (ph2c == NULL) {
|
||||
res = _FAIL;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
paddbareq_parm = kzalloc(sizeof(struct addBaReq_parm), GFP_KERNEL);
|
||||
paddbareq_parm = kzalloc(sizeof(struct addBaReq_parm), GFP_ATOMIC);
|
||||
if (paddbareq_parm == NULL) {
|
||||
kfree(ph2c);
|
||||
res = _FAIL;
|
||||
|
|
Loading…
Add table
Reference in a new issue