aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-05-28 11:11:09 +0300
committerPaolo Abeni <pabeni@redhat.com>2025-05-29 12:37:42 +0200
commit54d34165b4f786d7fea8412a18fb4a54c1eab623 (patch)
treee2e2ff58e807ab4024d70ccfc146414aa8405e04 /scripts/gdb/linux/modules.py
parentdriver: net: ethernet: mtk_star_emac: fix suspend/resume issue (diff)
downloadwireguard-linux-54d34165b4f786d7fea8412a18fb4a54c1eab623.tar.xz
wireguard-linux-54d34165b4f786d7fea8412a18fb4a54c1eab623.zip
net/mlx4_en: Prevent potential integer overflow calculating Hz
The "freq" variable is in terms of MHz and "max_val_cycles" is in terms of Hz. The fact that "max_val_cycles" is a u64 suggests that support for high frequency is intended but the "freq_khz * 1000" would overflow the u32 type if we went above 4GHz. Use unsigned long long type for the mutliplication to prevent that. Fixes: 31c128b66e5b ("net/mlx4_en: Choose time-stamping shift value according to HW frequency") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/aDbFHe19juIJKjsb@stanley.mountain Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions