diff options
| author | 2025-10-09 14:24:50 +0200 | |
|---|---|---|
| committer | 2025-10-21 11:28:03 +0200 | |
| commit | 4fcffb5e5c8c0c8e2ad9c99a22305a0afbecc294 (patch) | |
| tree | 789dc5bec6fe497a88870939ac8cbd3f2e41c49c /tools/perf/scripts/python/task-analyzer.py | |
| parent | drm/panic: Fix overlap between qr code and logo (diff) | |
| download | linux-rng-4fcffb5e5c8c0c8e2ad9c99a22305a0afbecc294.tar.xz linux-rng-4fcffb5e5c8c0c8e2ad9c99a22305a0afbecc294.zip | |
drm/panic: Fix qr_code, ensure vmargin is positive
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>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
