summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorZichen Xie <zichenxie0106@gmail.com>2024-10-29 14:42:10 -0500
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>2024-10-31 23:27:07 +0200
commit20c7b42d9dbd048019bfe0af39229e3014007a98 (patch)
treea2cf59a810e3121d29e9b076fa5d0b3e6d79c433 /tools/perf/scripts/python/Perf-Trace-Util
parentc36a410780a3c061ec82915d4c826c324ca43926 (diff)
downloadkernel-20c7b42d9dbd048019bfe0af39229e3014007a98.tar.gz
drm/msm/dpu: cast crtc_clk calculation to u64 in _dpu_core_perf_calc_clk()
There may be a potential integer overflow issue in _dpu_core_perf_calc_clk(). crtc_clk is defined as u64, while mode->vtotal, mode->hdisplay, and drm_mode_vrefresh(mode) are defined as a smaller data type. The result of the calculation will be limited to "int" in this case without correct casting. In screen with high resolution and high refresh rate, integer overflow may happen. So, we recommend adding an extra cast to prevent potential integer overflow. Fixes: c33b7c0389e1 ("drm/msm/dpu: add support for clk and bw scaling for display") Signed-off-by: Zichen Xie <zichenxie0106@gmail.com> Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/622206/ Link: https://lore.kernel.org/r/20241029194209.23684-1-zichenxie0106@gmail.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions
1-05-06 07:46:22 +0200'>2011-05-06pcmcia: Convert pcmcia_device_id declarations to constJoe Perches 2011-05-05net: call dev_alloc_name from register_netdeviceJiri Pirko 2011-03-31Fix common misspellingsLucas De Marchi 2011-03-17net: change to new flag variablematt mooney 2011-01-10hostap_cs: fix sleeping function called from invalid contextStanislaw Gruszka 2010-12-26Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/ne...David S. Miller 2010-12-20hostap: remove netif_stop_queue from initMeelis Roos 2010-12-12hostap: don't use flush_scheduled_work()Tejun Heo 2010-10-24Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jiko...Linus Torvalds