mwifiex: cancel pending commands for signal
authorAmitkumar Karwar <akarwar@marvell.com>
Thu, 20 Mar 2014 23:23:49 +0000 (16:23 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 31 Mar 2014 17:47:40 +0000 (13:47 -0400)
commit3d026d09b28dda24777129a931634949c75a9181
treefa67b2aa71d5292ac8242983ac92a100bb223c57
parent1845bd3a91427b4715ff0e28719fa4a4b9003f23
mwifiex: cancel pending commands for signal

When a thread is interrupted by signal, all
wait_event_interruptible calls after queueing commands return
an error. Numbers of commands in pending queue are increased
in this case. Sometimes all commands nodes in pool are filled.

We will cancel pending commands when signal is received.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/sta_ioctl.c