mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
net: wireless: bcmdhd: Ignore signal_pending() while waiting in IOCTL
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
@@ -3931,14 +3931,11 @@ dhd_os_ioctl_resp_wait(dhd_pub_t *pub, uint *condition, bool *pending)
|
||||
* Can be changed by another processor.
|
||||
*/
|
||||
smp_mb();
|
||||
while (!(*condition) && (!signal_pending(current) && timeout)) {
|
||||
while (!(*condition) && timeout) {
|
||||
timeout = schedule_timeout(timeout);
|
||||
smp_mb();
|
||||
}
|
||||
|
||||
if (signal_pending(current))
|
||||
*pending = TRUE;
|
||||
|
||||
set_current_state(TASK_RUNNING);
|
||||
remove_wait_queue(&dhd->ioctl_resp_wait, &wait);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user