]> Git Repo - linux.git/commit
drm/xe/hwmon: Cast result to output precision on left shift of operand
authorKarthik Poosa <[email protected]>
Fri, 5 Apr 2024 13:01:27 +0000 (18:31 +0530)
committerLucas De Marchi <[email protected]>
Tue, 9 Apr 2024 16:57:55 +0000 (09:57 -0700)
commit883232b47b81108b0252197c747f396ecd51455a
treed4e5517544a6e25891ceeb09b440b63701f6a098
parenta50b794c924352603eb37ec5a279a19907fe2587
drm/xe/hwmon: Cast result to output precision on left shift of operand

Address potential overflow in result of left shift of a
lower precision (u32) operand before assignment to higher
precision (u64) variable.

v2:
 - Update commit message. (Himal)

Fixes: 4446fcf220ce ("drm/xe/hwmon: Expose power1_max_interval")
Signed-off-by: Karthik Poosa <[email protected]>
Reviewed-by: Anshuman Gupta <[email protected]>
Cc: Badal Nilawar <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
drivers/gpu/drm/xe/xe_hwmon.c
This page took 0.055056 seconds and 4 git commands to generate.