]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: fix race condition causing tx timeout
authorCathy Luo <cluo@marvell.com>
Tue, 20 Sep 2016 15:19:03 +0000 (20:49 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 26 Sep 2016 17:39:42 +0000 (20:39 +0300)
commitafcca926fc82e38562423105c00e64a20a7eace8
tree478d84df8e7fc531d7fdb4df11bf6e8162168508
parent5be56c5212fdc0f2655d47c86e169b974edf9e5d
mwifiex: fix race condition causing tx timeout

It's been observed that in a corner case mwifiex_usb_tx_complete()
gets called before we exit from mwifiex_usb_host_to_card() after
submitting the urb. 'data_sent' flag remains set in this case. It
blocks further Tx packets and triggers watchdog timeout.

The problem is fixed by setting data_sent and port_block flag at
correct place.

Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Shengzhen Li <szli@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/usb.c