[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <877bwyq6is.fsf@ocarina.mail-host-address-is-not-set>
Date: Tue, 14 Oct 2025 09:36:27 +0200
From: Javier Martinez Canillas <javierm@...hat.com>
To: Jocelyn Falempe <jfalempe@...hat.com>, Maarten Lankhorst
<maarten.lankhorst@...ux.intel.com>, Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>, David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>, Jocelyn Falempe <jfalempe@...hat.com>,
linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org
Cc: stable@...r.kernel.org
Subject: Re: [PATCH 5/6] drm/panic: Fix divide by 0 if the screen width <
font width
Jocelyn Falempe <jfalempe@...hat.com> writes:
> In the unlikely case that the screen is tiny, and smaller than the
> font width, it leads to a divide by 0:
>
> draw_line_with_wrap()
> chars_per_row = sb->width / font->width = 0
> line_wrap.len = line->len % chars_per_row;
>
> This will trigger a divide by 0
>
> Signed-off-by: Jocelyn Falempe <jfalempe@...hat.com>
> ---
Reviewed-by: Javier Martinez Canillas <javierm@...hat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
Powered by blists - more mailing lists