From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B2116221F17; Wed, 4 Feb 2026 14:47:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216470; cv=none; b=NDjuH1WflLRk80ZKgDHCKbwxO2W4dvz6DuMNtaGbSE6bUezQiwIhCPdX9kh6va9GcfK/6KpOciloLbPsSL0lwb5hEpD95eEs8GSH80RsQ6bzeuamnwX+PUKkjiIwqdEqWxgANw49jICspSxZDKgdhgopvrnlrWp/afGWvvj87JQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770216470; c=relaxed/simple; bh=gERMgZCqStClJnMP25wmHuKB88fZOCItuknWK5Pq1hM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Tv0R5U1QECgVQ/IdKlstK/JNO20WmzFbtdjgAj8nkTqfUEGJZz1KvXiH+UHk+MW0lHc1eE3JePKHXT3hQKYjV8MasJGMJp3A8jzEmQsZhGd4iM2k+gBpYfDrxmxMEhA3+IResjCUc3yunFVRzusB5d1b8YRzNW42dEK6YLITdQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IMKp72SY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="IMKp72SY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 358FEC4CEF7; Wed, 4 Feb 2026 14:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770216470; bh=gERMgZCqStClJnMP25wmHuKB88fZOCItuknWK5Pq1hM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IMKp72SYBeQ0JSifanBtfQBcBdHr89kGi7GgnGdKDMy6kRoyZbWYoYBHlCcNjl9VL zYZ+9jbcRtUQluvH1yOCJ4NN1yuX5MWS+tLJ8+V6UDg0zwCWZf5lqigoQIg89ArJoi nGOJeKnPk/E/2OeH0YFJCcDxG8g7jYZ5PoN5xwBU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Dan Carpenter , Jeff Chen , Johannes Berg Subject: [PATCH 5.10 096/161] wifi: mwifiex: Fix a loop in mwifiex_update_ampdu_rxwinsize() Date: Wed, 4 Feb 2026 15:39:19 +0100 Message-ID: <20260204143855.197413139@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260204143851.755002596@linuxfoundation.org> References: <20260204143851.755002596@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.10-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dan Carpenter commit 2120f3a3738a65730c81bf10447b1ff776078915 upstream. The "i" iterator variable is used to count two different things but unfortunately we can't store two different numbers in the same variable. Use "i" for the outside loop and "j" for the inside loop. Cc: stable@vger.kernel.org Fixes: d219b7eb3792 ("mwifiex: handle BT coex event to adjust Rx BA window size") Signed-off-by: Dan Carpenter Reviewed-by: Jeff Chen Link: https://patch.msgid.link/aWAM2MGUWRP0zWUd@stanley.mountain Signed-off-by: Johannes Berg Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c +++ b/drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c @@ -839,7 +839,7 @@ void mwifiex_update_rxreor_flags(struct static void mwifiex_update_ampdu_rxwinsize(struct mwifiex_adapter *adapter, bool coex_flag) { - u8 i; + u8 i, j; u32 rx_win_size; struct mwifiex_private *priv; @@ -879,8 +879,8 @@ static void mwifiex_update_ampdu_rxwinsi if (rx_win_size != priv->add_ba_param.rx_win_size) { if (!priv->media_connected) continue; - for (i = 0; i < MAX_NUM_TID; i++) - mwifiex_11n_delba(priv, i); + for (j = 0; j < MAX_NUM_TID; j++) + mwifiex_11n_delba(priv, j); } } }