]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mwifiex: fix loop iterator in mwifiex_update_ampdu_txwinsize()
authorDan Carpenter <error27@gmail.com>
Mon, 6 Feb 2023 14:41:33 +0000 (17:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:26:37 +0000 (16:26 +0100)
commit0679f21aed9e56c65a3ada23ff97cbccce7674bf
tree101e350ee42c9397ee7551f5eb17016762a816e6
parent8972b8b0c94ebd15df274590456778f811afa1a1
wifi: mwifiex: fix loop iterator in mwifiex_update_ampdu_txwinsize()

[ Upstream commit 3cfb7df24cee0f5fdc4cc5d3176cab9aadfcb430 ]

This code re-uses "i" to be the iterator for both the inside and outside
loops.  It means the outside loop will exit earlier than intended.

Fixes: d219b7eb3792 ("mwifiex: handle BT coex event to adjust Rx BA window size")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/Y+ERnaDaZD7RtLvX@kili
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/marvell/mwifiex/11n.c