aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorPing-Ke Shih <[email protected]>2024-10-09 08:42:55 +0800
committerPing-Ke Shih <[email protected]>2024-10-20 10:29:55 +0800
commit5af57c4f9937745c80b14e9e1d0adc4defc1f7ed (patch)
treed775cb3072ff02dbb712c5a0387643fa3e7d88cb /tools/perf/scripts/python
parent1f3de77752a7bf0d1beb44603f048eb46948b9fe (diff)
wifi: rtw89: wow: cast nd_config->delay to u64 in tsf arithmetic
The type of tsf arithmetic is u64 += u16 * int; When (u16 * int) is larger than 0x7FFFFFFF, the value casting to u64 with sign-extension will become all 1 in upper 32 bits part. To meet the case, u16 value should be larger than 20491 (0x7FFFFFFF / 104800). Fortunately the meaning of 20491 is delay time of WoWLAN net detection in unit of second, so 20491 seconds (5.7 hours) might not a real case we can meet. Addresses-Coverity-ID: 1620910 ("Unintended sign extension") Signed-off-by: Ping-Ke Shih <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions