diff options
| author | Gustavo A. R. Silva <[email protected]> | 2019-08-12 00:08:01 +0000 |
|---|---|---|
| committer | james qian wang (Arm Technology China) <[email protected]> | 2019-08-12 11:28:49 +0000 |
| commit | c550b60c647941b581e4b0f4f2b1526b34f4a8e5 (patch) | |
| tree | 45fd962906daf4289accc9cbb2f6bcd308a87b5c /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | dma-fence: Report the composite sync_file status (diff) | |
| download | kernel-c550b60c647941b581e4b0f4f2b1526b34f4a8e5.tar.gz kernel-c550b60c647941b581e4b0f4f2b1526b34f4a8e5.zip | |
drm/komeda: Fix potential integer overflow in komeda_crtc_update_clock_ratio
Add suffix ULL to constant 1000 in order to avoid a potential integer
overflow and give the compiler complete information about the proper
arithmetic to use. Notice that this constant is being used in a context
that expects an expression of type u64, but it's currently evaluated
using 32-bit arithmetic.
Addresses-Coverity-ID: 1485796 ("Unintentional integer overflow")
Fixes: ed22c6d9304d ("drm/komeda: Use drm_display_mode "crtc_" prefixed hardware timings")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: James Qian Wang (Arm Technology China) <[email protected]>
Signed-off-by: james qian wang (Arm Technology China) <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/20190812000801.GA29204@embeddedor
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
