summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorxueqin Luo <luoxueqin@kylinos.cn>2024-12-02 06:19:17 +0300
committerFelix Fietkau <nbd@nbd.name>2025-01-14 15:34:34 +0300
commit64d571742b0ae44eee5efd51e2d4a09d7f6782fc (patch)
treecef374160221abb163b695e7c8088907c603e845 /tools/perf/scripts/python/export-to-postgresql.py
parent5adbc8ce5bbe7e311e2600b7d7d998a958873e98 (diff)
downloadlinux-64d571742b0ae44eee5efd51e2d4a09d7f6782fc.tar.xz
wifi: mt76: mt7915: fix overflows seen when writing limit attributes
DIV_ROUND_CLOSEST() after kstrtoul() results in an overflow if a large number such as 18446744073709551615 is provided by the user. Fix it by reordering clamp_val() and DIV_ROUND_CLOSEST() operations. This commit was inspired by commit: 57ee12b6c514. Fixes: 02ee68b95d81 ("mt76: mt7915: add control knobs for thermal throttling") Signed-off-by: xueqin Luo <luoxueqin@kylinos.cn> Link: https://patch.msgid.link/20241202031917.23741-3-luoxueqin@kylinos.cn Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions