]> git.karo-electronics.de Git - linux-beck.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)
commit5476f8030d9a9f7082ba5a4d4f0a1bfbf6936800
tree478d84df8e7fc531d7fdb4df11bf6e8162168508
parent1afac196c16753f93d482eedb9aeb802e740e67e
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