]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: restructure rx_reorder_tbl_lock usage
authorGanapathi Bhat <gbhat@marvell.com>
Wed, 27 Jun 2018 06:13:39 +0000 (11:43 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 31 Jul 2018 07:11:33 +0000 (10:11 +0300)
commitcbf9fd85740532d405215744ebcc3a9e903d3ade
treeab18636de3c4998e2e226fc118b808aca2e675d0
parent0533b6f182de9bc237f976205f6cd5eb42c446d5
mwifiex: restructure rx_reorder_tbl_lock usage

Driver must ensure that whenever it holds a pointer to the list
entry mwifiex_rx_reorder_tbl, it must protect the same with
rx_reorder_tbl_lock. At present there are many places where
driver does not ensure this. To cover all cases, spinlocks in
below funcions are moved out and made sure that the caller will
hold the spinlock:
mwifiex_11n_dispatch_pkt_until_start_win()
mwifiex_11n_scan_and_dispatch()
mwifiex_del_rx_reorder_entry()
mwifiex_11n_get_rx_reorder_tbl()
mwifiex_11n_find_last_seq_num()

Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/11n.c
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
drivers/net/wireless/marvell/mwifiex/uap_txrx.c