drm/panic: Fix qr_code, ensure vmargin is positive
[ Upstream commit 4fcffb5e ] 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: cb5164ac ("drm/panic: Add a QR code panic screen") Reviewed-by:Javier Martinez Canillas <javierm@redhat.com> Link: https://lore.kernel.org/r/20251009122955.562888-4-jfalempe@redhat.com Signed-off-by:
Jocelyn Falempe <jfalempe@redhat.com> Signed-off-by:
Sasha Levin <sashal@kernel.org>
Loading
Please sign in to comment