aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_dynamic_debug.c
diff options
context:
space:
mode:
authorJason-JH.Lin <jason-jh.lin@mediatek.com>2023-09-07 17:14:25 +0800
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2023-09-11 15:02:22 +0000
commitb0b0d811eac6b4c52cb9ad632fa6384cf48869e7 (patch)
treed5caa0df365f3085b8d4383eb946e6ff40d838c6 /lib/test_dynamic_debug.c
parentdrm/mediatek: Add mt8188 dsi compatible to mtk_dsi.c (diff)
downloadlinux-rng-b0b0d811eac6b4c52cb9ad632fa6384cf48869e7.tar.xz
linux-rng-b0b0d811eac6b4c52cb9ad632fa6384cf48869e7.zip
drm/mediatek: Fix coverity issue with unintentional integer overflow
1. Instead of multiplying 2 variable of different types. Change to assign a value of one variable and then multiply the other variable. 2. Add a int variable for multiplier calculation instead of calculating different types multiplier with dma_addr_t variable directly. Fixes: 1a64a7aff8da ("drm/mediatek: Fix cursor plane no update") Signed-off-by: Jason-JH.Lin <jason-jh.lin@mediatek.com> Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20230907091425.9526-1-jason-jh.lin@mediatek.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Diffstat (limited to 'lib/test_dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions