Commit 9a0daa17 authored by Jocelyn Falempe's avatar Jocelyn Falempe Committed by Greg Kroah-Hartman
Browse files

drm/panic: Fix drawing the logo on a small narrow screen



[ Upstream commit 179753aa ]

If the logo width is bigger than the framebuffer width, and the
height is big enough to hold the logo and the message, it will draw
at x coordinate that are higher than the width, and ends up in a
corrupted image.

Fixes: 4b570ac2 ("drm/rect: Add drm_rect_overlap()")
Reviewed-by: default avatarJavier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20251009122955.562888-2-jfalempe@redhat.com


Signed-off-by: default avatarJocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 57c320d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment