summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorxueqin Luo <luoxueqin@kylinos.cn>2024-12-02 11:19:16 +0800
committerFelix Fietkau <nbd@nbd.name>2025-01-14 13:34:34 +0100
commit5adbc8ce5bbe7e311e2600b7d7d998a958873e98 (patch)
treee03755e089034c31231320ed2928be49afa8acf6 /scripts/generate_rust_analyzer.py
parent113d469e7e23579a64b0fbb2eadf9228763092be (diff)
wifi: mt76: mt7996: 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: 6879b2e94172 ("wifi: mt76: mt7996: add thermal sensor device support") Signed-off-by: xueqin Luo <luoxueqin@kylinos.cn> Link: https://patch.msgid.link/20241202031917.23741-2-luoxueqin@kylinos.cn Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions