[PATCH] drm/rockchip: vop: fix sloppy typing in vop_plane_atomic_update()
Sergey Shtylyov
s.shtylyov at auroraos.dev
Fri Feb 6 12:28:24 PST 2026
On 2/6/26 11:23 PM, Sergey Shtylyov wrote:
> In vop_plane_atomic_update(), the variable offset is needlessly typed as
> *unsigned long* -- which is 32-bit type on the 32-bit arches and 64-bit
> type on the 64-bit arches. I highly doubt that this variable can exceed
> 4 GiB even on 64-bit arches, so let's redeclare it as *unsigned int*...
>
> Found by Linux Verification Center (linuxtesting.org) with the Svace static
> analysis tool.
>
> Signed-off-by: Sergey Shtylyov <s.shtylyov at auroraos.dev>
Oops, I did forget to add that the patch is against the drm-misc-next branch
of the drm/misc/kernel.git repo on gitlab.freedesktop.org.
MBR, Sergey
More information about the linux-arm-kernel
mailing list