Patch "staging: r8188eu: Fix scheduling while atomic splat" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
staging: r8188eu: Fix scheduling while atomic splat
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
staging-r8188eu-fix-scheduling-while-atomic-splat.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
1335a9516d3d52f157ad87456efdd8dc9ae1747bMon Sep 17 00:00:00 2001
From: Larry Finger <[email protected]>
Date: Sun, 5 Jun 2016 14:11:19 -0500
Subject: staging: r8188eu: Fix scheduling while atomic splat
From: Larry Finger <[email protected]>
commit 1335a9516d3d52f157ad87456efdd8dc9ae1747b upstream.
Commit fadbe0cd5292851608e2e01b91d9295fa287b9fe ("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 commit 33dc85c3c667209c930b2dac5ccbc2a365e06b7a ("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.
--- drivers/staging/rtl8188eu/core/rtw_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8188eu/core/rtw_cmd.c +2 -2
@@ -718,13 +718,13 @@ u8 rtw_addbareq_cmd(struct adapter *padau8 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;
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/staging-r8188eu-fix-scheduling-while-atomic-splat.patch