summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorRyder Lee <ryder.lee@mediatek.com>2026-06-05 14:33:03 +0300
committerFelix Fietkau <nbd@nbd.name>2026-06-09 13:28:08 +0300
commit05e72b6167970043348bfbe8f72a3b67a38a9f1c (patch)
tree8413be70f47b92bbeab16cf82708c2b007c8a5a3 /include/linux
parent9c082046c36286013ddb3d353db727868f95fab8 (diff)
downloadlinux-05e72b6167970043348bfbe8f72a3b67a38a9f1c.tar.xz
wifi: mt76: mt7915: 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: 943e4fb96e6f ("wifi: mt76: mt7915: report tx retries/failed counts for non-WED path") Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Link: https://patch.msgid.link/20260605113306.3485554-1-ryder.lee@mediatek.com Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions