diff options
| author | Ryder Lee <ryder.lee@mediatek.com> | 2026-06-05 14:33:06 +0300 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2026-06-09 13:28:08 +0300 |
| commit | 4d8bba99d645bcb46a442b18eb42402610cba03a (patch) | |
| tree | b152f0215fd2ae971bd0a93750adcf909306891c /include | |
| parent | 1e1fd84571e62a2961cea44c053340ec5c99b2cb (diff) | |
| download | linux-4d8bba99d645bcb46a442b18eb42402610cba03a.tar.xz | |
wifi: mt76: mt7996: fix potential tx_retries underflow
When FIELD_GET returns 0 for the retry count, subtracting 1 causes
an unsigned integer underflow, resulting in tx_retries becoming a
very large value (0xFFFFFFFF for u32).
Fix by checking if count is non-zero before subtracting 1.
Fixes: 2461599f835e ("wifi: mt76: mt7996: get tx_retries and tx_failed from txfree")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Link: https://patch.msgid.link/20260605113306.3485554-4-ryder.lee@mediatek.com
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
