From: Dmitry Shmidt Date: Wed, 16 May 2012 23:50:06 +0000 (-0700) Subject: net: wireless: bcmdhd: Ignore signal_pending() while waiting in IOCTL X-Git-Tag: firefly_0821_release~7613^2~98 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=605a493298348eb2e9e2efc8a6c1b0297c13fe46;p=firefly-linux-kernel-4.4.55.git net: wireless: bcmdhd: Ignore signal_pending() while waiting in IOCTL Signed-off-by: Dmitry Shmidt --- diff --git a/drivers/net/wireless/bcmdhd/dhd_linux.c b/drivers/net/wireless/bcmdhd/dhd_linux.c index 8a9f795292b9..69189f8fe549 100644 --- a/drivers/net/wireless/bcmdhd/dhd_linux.c +++ b/drivers/net/wireless/bcmdhd/dhd_linux.c @@ -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);