linux/drivers/gpu
Jocelyn Falempe 07f5d021d7 drm/panic: Fix qr_code, ensure vmargin is positive
[ Upstream commit 4fcffb5e5c ]

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: cb5164ac43 ("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>
History 2025-10-29 14:08:59 +01:00
..
drm drm/panic: Fix qr_code, ensure vmargin is positive 2025-10-29 14:08:59 +01:00
host1x gpu: host1x: Do not assume that a NULL domain means no DMA IOMMU 2025-03-28 22:03:27 +01:00
ipu-v3 Driver core changes for 6.11-rc1 2024-07-25 10:42:22 -07:00
trace gpu/trace: add a gpu total memory usage tracepoint 2020-03-03 17:52:41 -05:00
vga drm: Do delayed switcheroo in drm_lastclose() 2024-08-13 16:21:07 +02:00
Makefile gpu: host1x: Add context bus 2022-06-01 11:50:42 +02:00