linux_dsm_epyc7002/drivers/gpu/drm/arm/display
Gustavo A. R. Silva c550b60c64 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: ed22c6d930 ("drm/komeda: Use drm_display_mode "crtc_" prefixed hardware timings")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: James Qian Wang (Arm Technology China) <james.qian.wang@arm.com>
Signed-off-by: james qian wang (Arm Technology China) <james.qian.wang@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190812000801.GA29204@embeddedor
2019-08-12 19:28:49 +08:00
..
include drm/komeda: Add format support for Y0L2, P010, YUV420_8/10BIT 2019-06-19 11:42:17 +01:00
komeda drm/komeda: Fix potential integer overflow in komeda_crtc_update_clock_ratio 2019-08-12 19:28:49 +08:00
Kbuild drm/komeda: komeda_dev/pipeline/component definition and initialzation 2019-01-14 11:09:23 +00:00
Kconfig drm/komeda: komeda_dev/pipeline/component definition and initialzation 2019-01-14 11:09:23 +00:00