[PATCH v2] drm/meson: Use 1000ULL when operating with mode->clock

Martin Blumenstingl martin.blumenstingl at googlemail.com
Mon May 5 22:40:28 PDT 2025


On Mon, May 5, 2025 at 8:43 PM I Hsin Cheng <richard120310 at gmail.com> wrote:
>
> 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 at gmail.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>


Thank you and best regards,
Martin



More information about the linux-arm-kernel mailing list