]> 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)
commit71154be7e446b8d2d1ee0871709b2d177d7aea38
tree478d84df8e7fc531d7fdb4df11bf6e8162168508
parentc6af447bb31be7caa35b7ab6a0e44d1d30746ffc
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