Skip to content

Commit 0463d04

Browse files
jognesspmladek
authored andcommitted
printk: reduce setup_text_buf size to LOG_LINE_MAX
@setup_text_buf only copies the original text messages (without any prefix or extended text). It only needs to be LOG_LINE_MAX in size. Signed-off-by: John Ogness <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 59f8bcc commit 0463d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/printk/printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ static unsigned int __init add_to_rb(struct printk_ringbuffer *rb,
10951095
return prb_record_text_space(&e);
10961096
}
10971097

1098-
static char setup_text_buf[CONSOLE_EXT_LOG_MAX] __initdata;
1098+
static char setup_text_buf[LOG_LINE_MAX] __initdata;
10991099

11001100
void __init setup_log_buf(int early)
11011101
{

0 commit comments

Comments
 (0)