diff options
| author | Jocelyn Falempe <jfalempe@redhat.com> | 2025-10-09 14:24:50 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-29 14:08:59 +0100 |
| commit | 07f5d021d764ede78cd9b6857b665887e58eb42a (patch) | |
| tree | e1327f0ca1d28aee47f1a3c1f98c5d472d7fd2d6 /include/net/aligned_data.h | |
| parent | 9630c168a9dc31b6128871d62f22c1abb56eedc6 (diff) | |
drm/panic: Fix qr_code, ensure vmargin is positive
[ Upstream commit 4fcffb5e5c8c0c8e2ad9c99a22305a0afbecc294 ]
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")
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>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
