diff options
| author | Harish Chegondi <[email protected]> | 2025-11-17 19:48:43 +0000 |
|---|---|---|
| committer | Lucas De Marchi <[email protected]> | 2025-11-25 19:53:34 +0000 |
| commit | 7276878b069c57d9a9cca5db01d2f7a427b73456 (patch) | |
| tree | 1eda9c6f2a841c55d3f54bf86959b508b2d1ea36 /lib/test_fortify/write_overflow-strlcpy-src.c | |
| parent | drm/xe/guc: Fix stack_depot usage (diff) | |
| download | kernel-7276878b069c57d9a9cca5db01d2f7a427b73456.tar.gz kernel-7276878b069c57d9a9cca5db01d2f7a427b73456.zip | |
drm/xe: Fix conversion from clock ticks to milliseconds
When tick counts are large and multiplication by MSEC_PER_SEC is larger
than 64 bits, the conversion from clock ticks to milliseconds can go bad.
Use mul_u64_u32_div() instead.
Cc: Ashutosh Dixit <[email protected]>
Signed-off-by: Harish Chegondi <[email protected]>
Suggested-by: Umesh Nerlige Ramappa <[email protected]>
Fixes: 49cc215aad7f ("drm/xe: Add xe_gt_clock_interval_to_ms helper")
Reviewed-by: Ashutosh Dixit <[email protected]>
Signed-off-by: Ashutosh Dixit <[email protected]>
Link: https://patch.msgid.link/1562f1b62d5be3fbaee100f09107f3cc49e40dd1.1763408584.git.harish.chegondi@intel.com
(cherry picked from commit 96b93ac214f9dd66294d975d86c5dee256faef91)
Signed-off-by: Lucas De Marchi <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions
