]> Gentwo Git Trees - linux/.git/commit
drm/panic: Fix drawing the logo on a small narrow screen
authorJocelyn Falempe <jfalempe@redhat.com>
Thu, 9 Oct 2025 12:24:48 +0000 (14:24 +0200)
committerJocelyn Falempe <jfalempe@redhat.com>
Tue, 21 Oct 2025 09:28:02 +0000 (11:28 +0200)
commit179753aa5b7890b311968c033d08f558f0a7be21
treeec039142fef31baa233c073324633a9572b3ca81
parent4eabd0d8791eaf9a7b114ccbf56eb488aefe7b1f
drm/panic: Fix drawing the logo on a small narrow screen

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: 4b570ac2eb54 ("drm/rect: Add drm_rect_overlap()")
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Link: https://lore.kernel.org/r/20251009122955.562888-2-jfalempe@redhat.com
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
drivers/gpu/drm/drm_panic.c