On Mon, Jun 22, 2026 at 03:19:38PM +0200, Thomas Zimmermann wrote:
> Validate the computed stride against the maximum value INT_MAX.
> 
> Signed-off-by: Thomas Zimmermann <[email protected]>
> Fixes: 7bfa5c7b28d6 ("drm/simpledrm: Compute linestride with 
> drm_format_info_min_pitch()")
> Cc: <[email protected]> # v6.1+
> ---
>  drivers/gpu/drm/sysfb/simpledrm.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)

Ugh... I have a hard time imagining that we'd ever exceed INT_MAX here,
but I guess better safe than sorry?

Reviewed-by: Thierry Reding <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to