]> 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)
committerKalle Valo <kvalo@kernel.org>
Tue, 30 Aug 2022 16:37:47 +0000 (19:37 +0300)
commit6d0ef7241553f3553a0a2764c69b07892705924c
tree978547a529a260d9baf37f6a8e9666ba975a2878
parent40b717bfcefab28a0656b8caa5e43d5449e5a671
wifi: iwlegacy: 4965: corrected fix for potential off-by-one overflow in il4965_rs_fill_link_cmd()

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
drivers/net/wireless/intel/iwlegacy/4965-rs.c