]> git.itanic.dy.fi Git - linux-stable/commit
wifi: iwlegacy: 4965: corrected fix for potential off-by-one overflow in il4965_rs_fi...
authorStanislaw Gruszka <stf_xl@wp.pl>
Mon, 15 Aug 2022 07:37:37 +0000 (09:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Sep 2022 09:32:02 +0000 (11:32 +0200)
commit2946d2ae5ace3ad77f9d1710a1eeb279070b3caf
tree9bb1d7771fbf673361453ec675168c8ec87307c5
parent918d9c4a4bdf5205f2fb3f64dddfb56c9a1d01d6
wifi: iwlegacy: 4965: corrected fix for potential off-by-one overflow in il4965_rs_fill_link_cmd()

commit 6d0ef7241553f3553a0a2764c69b07892705924c upstream.

This reverts commit a8eb8e6f7159c7c20c0ddac428bde3d110890aa7 as
it can cause invalid link quality command sent to the firmware
and address the off-by-one issue by fixing condition of while loop.

Cc: stable@vger.kernel.org
Fixes: a8eb8e6f7159 ("wifi: iwlegacy: 4965: fix potential off-by-one overflow in il4965_rs_fill_link_cmd()")
Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220815073737.GA999388@wp.pl
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intel/iwlegacy/4965-rs.c