]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/meson: Use 1000ULL when operating with mode->clock
authorI Hsin Cheng <richard120310@gmail.com>
Mon, 5 May 2025 18:43:38 +0000 (02:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Jun 2025 10:05:22 +0000 (11:05 +0100)
commit117ea3f4e59c42f77639b8ead6c0f269bbac846b
tree8052a58f78eb843bd548cdf16e8a0d4130fef54b
parent56e5419b5f5c5eed579b60527de6835c7d43b795
drm/meson: Use 1000ULL when operating with mode->clock

commit eb0851e14432f3b87c77b704c835ac376deda03a upstream.

Coverity scan reported the usage of "mode->clock * 1000" may lead to
integer overflow. Use "1000ULL" instead of "1000"
when utilizing it to avoid potential integer overflow issue.

Link: https://scan5.scan.coverity.com/#/project-view/10074/10063?selectedIssue=1646759
Signed-off-by: I Hsin Cheng <richard120310@gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Fixes: 1017560164b6 ("drm/meson: use unsigned long long / Hz for frequency types")
Link: https://lore.kernel.org/r/20250505184338.678540-1-richard120310@gmail.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/meson/meson_encoder_hdmi.c