]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: mt76: mt7925: fix off by one in mt7925_load_clc()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 11 Sep 2024 07:43:03 +0000 (10:43 +0300)
committerFelix Fietkau <nbd@nbd.name>
Mon, 13 Jan 2025 10:21:54 +0000 (11:21 +0100)
commit08fa656c91fd5fdf47ba393795b9c0d1e97539ed
tree8ff5eef12cadf9ad1eb15989fda5a78a0bec0a04
parentfbce6136da0a40f62ea22361e7d13f6a502c20ad
wifi: mt76: mt7925: fix off by one in mt7925_load_clc()

This comparison should be >= instead of > to prevent an out of bounds
read and write.

Fixes: 9679ca7326e5 ("wifi: mt76: mt7925: fix a potential array-index-out-of-bounds issue for clc")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/84bf5dd2-2fe3-4410-a7af-ae841e41082a@stanley.mountain
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7925/mcu.c