wifi: mt76: mt7915: fix bounds checking for tx-free-done command
authorBen Greear <greearb@candelatech.com>
Thu, 29 Sep 2022 15:15:25 +0000 (08:15 -0700)
committerFelix Fietkau <nbd@nbd.name>
Thu, 1 Dec 2022 16:29:12 +0000 (17:29 +0100)
commit2b685ba7d4247d7707af795719f4f33c9019feb6
tree34b3668958fb875b03dd76b5a5b0b51afe4f9e1c
parent03c2dd4d01a20edbadee408a622dee5e8a27f1e6
wifi: mt76: mt7915: fix bounds checking for tx-free-done command

According to the tx-free-done documentation, the DW4 can be repeated,
so have to be more careful about how we test for walking off the
end of the array.

Signed-off-by: Ben Greear <greearb@candelatech.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7915/mac.c