summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorLorenzo Bianconi <lorenzo@kernel.org>2021-11-18 13:42:06 +0300
committerFelix Fietkau <nbd@nbd.name>2021-12-19 17:23:59 +0300
commitd4f3d1c4d3c2bcce76a96a6562170664b25112f0 (patch)
tree861c6d867ca17069d82f3a7cc4f14295f7de2950 /scripts/patch-kernel
parent7f96905068ab826b270b41d70d46e2849e5db7df (diff)
downloadlinux-d4f3d1c4d3c2bcce76a96a6562170664b25112f0.tar.xz
mt76: fix possible OOB issue in mt76_calculate_default_rate
Cap max offset value to ARRAY_SIZE(mt76_rates) - 1 in mt76_calculate_default_rate routine in order to avoid possible Out Of Bound accesses. Fixes: 33920b2bf0483 ("mt76: add support for setting mcast rate") Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions