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 <john.ogness@linutronix.de> Reviewed-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/20200930090134.8723-3-john.ogness@linutronix.de
1 parent 59f8bcc commit 0463d04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)