]> Git Repo - linux.git/commit
drm/xe/xe_migrate: Cast to output precision before multiplying operands
authorHimal Prasad Ghimiray <[email protected]>
Mon, 1 Apr 2024 17:53:00 +0000 (23:23 +0530)
committerLucas De Marchi <[email protected]>
Thu, 11 Apr 2024 13:41:53 +0000 (08:41 -0500)
commit9cb46b31f3d08ed3fce86349e8c12f96d7c88717
treeb02998fb37a7dca7aa08f8b6c08f4321d373a006
parenta8ad8715472bb8f6a2ea8b4072a28151eb9f4f24
drm/xe/xe_migrate: Cast to output precision before multiplying operands

Addressing potential overflow in result of  multiplication of two lower
precision (u32) operands before widening it to higher precision
(u64).

-v2
Fix commit message and description. (Rodrigo)

Cc: Rodrigo Vivi <[email protected]>
Signed-off-by: Himal Prasad Ghimiray <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Rodrigo Vivi <[email protected]>
(cherry picked from commit 34820967ae7b45411f8f4f737c2d63b0c608e0d7)
Signed-off-by: Lucas De Marchi <[email protected]>
drivers/gpu/drm/xe/xe_migrate.c
This page took 0.058651 seconds and 4 git commands to generate.