Re: [PATCH 3/6] drm/panic: Fix qr_code, ensure vmargin is positive
From: Javier Martinez Canillas
Date: Tue Oct 14 2025 - 03:34:55 EST
Jocelyn Falempe <jfalempe@xxxxxxxxxx> writes:
> Depending on qr_code size and screen size, the vertical margin can
> be negative, that means there is not enough room to draw the qr_code.
>
> So abort early, to avoid a segfault by trying to draw at negative
> coordinates.
>
> Fixes: cb5164ac43d0f ("drm/panic: Add a QR code panic screen")
> Signed-off-by: Jocelyn Falempe <jfalempe@xxxxxxxxxx>
> ---
Reviewed-by: Javier Martinez Canillas <javierm@xxxxxxxxxx>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat