[lvc-project] [PATCH] drm/rockchip: vop: avoid division by 0 in scl_cal_scale*()

Fedor Pchelkin pchelkin at ispras.ru
Fri Nov 28 18:59:46 MSK 2025


On Thu, 27. Nov 17:43, Sergey Shtylyov wrote:
> In scl_cal_scale*(), if the dst parameter equals 1, then division by 0
> will happen. We'll have to add a check for the destination rectangle's
> width/height being < 2 in vop_plane_atomic_check(), just like the VOP2
> driver has to check for the width/height being < 4...
> 
> Found by Linux Verification Center (linuxtesting.org) with the Svace static
> analysis tool.
> 
> Fixes: 4c156c21c794 ("drm/rockchip: vop: support plane scale")
> Signed-off-by: Sergey Shtylyov <s.shtylyov at omp.ru>
> Cc: stable at vger.kernel.org
> 

Для ветки 5.10 просьба выслать отдельную версию патча в
lvc-patches at linuxtesting.org.

Спасибо!



More information about the lvc-project mailing list