aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/dvm/main.c
diff options
context:
space:
mode:
authorRand Deeb <[email protected]>2024-03-13 10:17:55 +0000
committerMiri Korenblit <[email protected]>2025-06-25 07:57:34 +0000
commite3ad987e9dc7d1e12e3f2f1e623f0e174cd0ca78 (patch)
tree497b5deafcfefcb3300a1f294419fed9612f0521 /drivers/net/wireless/intel/iwlwifi/dvm/main.c
parentiwlwifi: Add missing check for alloc_ordered_workqueue (diff)
downloadkernel-e3ad987e9dc7d1e12e3f2f1e623f0e174cd0ca78.tar.gz
kernel-e3ad987e9dc7d1e12e3f2f1e623f0e174cd0ca78.zip
wifi: iwlwifi: dvm: fix potential overflow in rs_fill_link_cmd()
The 'index' variable in the rs_fill_link_cmd() function can reach LINK_QUAL_MAX_RETRY_NUM during the execution of the inner loop. This variable is used as an index for the lq_cmd->rs_table array, which has a size of LINK_QUAL_MAX_RETRY_NUM, without proper validation. Modify the condition of the inner loop to ensure that the 'index' variable does not exceed LINK_QUAL_MAX_RETRY_NUM - 1, thereby preventing any potential overflow issues. Found by Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Rand Deeb <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Miri Korenblit <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/dvm/main.c')
0 files changed, 0 insertions, 0 deletions