aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDeren Wu <deren.wu@mediatek.com>2022-11-27 10:35:37 +0800
committerFelix Fietkau <nbd@nbd.name>2022-12-01 17:29:14 +0100
commit03dd0d49de7db680a856fa566963bb8421f46368 (patch)
tree4e961c2e953bb181d8cb4d2af5e51093046a76f5 /tools/perf/scripts/python
parentwifi: mt76: mt7996: add driver for MediaTek Wi-Fi 7 (802.11be) devices (diff)
downloadlinux-03dd0d49de7db680a856fa566963bb8421f46368.tar.gz
linux-03dd0d49de7db680a856fa566963bb8421f46368.zip
wifi: mt76: fix coverity overrun-call in mt76_get_txpower()
Make sure the nss is valid for nss_delta array. Return zero if the index is invalid. Coverity message: Event overrun-call: Overrunning callee's array of size 4 by passing argument "n_chains" (which evaluates to 15) in call to "mt76_tx_power_nss_delta". int delta = mt76_tx_power_nss_delta(n_chains); Fixes: 07cda406308b ("mt76: fix rounding issues on converting per-chain and combined txpower") Signed-off-by: Deren Wu <deren.wu@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions