Skip to content

Commit e9b36fe

Browse files
author
Jocelyn Falempe
committed
drm/panic: Fix kmsg text drawing rectangle
The rectangle height was larger than the screen size. This has no real impact. Reviewed-by: Javier Martinez Canillas <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jocelyn Falempe <[email protected]>
1 parent 4fcffb5 commit e9b36fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/drm_panic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ static int draw_line_with_wrap(struct drm_scanout_buffer *sb, const struct font_
480480
struct drm_panic_line *line, int yoffset, u32 fg_color)
481481
{
482482
int chars_per_row = sb->width / font->width;
483-
struct drm_rect r_txt = DRM_RECT_INIT(0, yoffset, sb->width, sb->height);
483+
struct drm_rect r_txt = DRM_RECT_INIT(0, yoffset, sb->width, font->height);
484484
struct drm_panic_line line_wrap;
485485

486486
if (line->len > chars_per_row) {

0 commit comments

Comments
 (0)