UPSTREAM: mwifiex: check wait_event_interruptible return value
authorBing Zhao <bzhao@marvell.com>
Thu, 3 Jan 2013 01:45:19 +0000 (17:45 -0800)
committerChromeBot <chrome-bot@google.com>
Mon, 7 Jan 2013 17:37:36 +0000 (09:37 -0800)
commit1975ee83115e63a22a35b880dc3184866ab49200
tree5e8612cc2bf9d763659401b7adc750790273598d
parentedc8f2515145510c0247494bddd8b58053b95681
UPSTREAM: mwifiex: check wait_event_interruptible return value

wait_event_interruptible function returns -ERESTARTSYS if it's
interrupted by a signal. Driver should check the return value
and handle this case properly.

In mwifiex_wait_queue_complete() routine, as we are now checking
wait_event_interruptible return value, the condition check is not
required. Also, we have removed mwifiex_cancel_pending_ioctl()
call to avoid a chance of sending second command to FW by other path
as soon as we clear current command node. FW can not handle two
commands simultaneously.

Cc: "3.6+" <stable@vger.kernel.org>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
BUG=chrome-os-partner:16031,17015
TEST=Boot, associate, and run "rtcwake -s 10 -mmem" in a
"while/do/done" loop

Change-Id: I54deddb71864a5b638a559b9e51942bf1d46162d
Reviewed-on: https://gerrit.chromium.org/gerrit/40359
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Bing Zhao <bzhao@marvell.com>
Tested-by: Bing Zhao <bzhao@marvell.com>
drivers/net/wireless/mwifiex/sta_ioctl.c