From: John Ogness Date: Wed, 30 Sep 2020 09:01:34 +0000 (+0206) Subject: printk: reduce setup_text_buf size to LOG_LINE_MAX X-Git-Tag: v5.10.7~1457^2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0463d04ea03a12d8a5aad42197a5945dfd78d7d6;p=platform%2Fkernel%2Flinux-rpi.git 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 Reviewed-by: Petr Mladek Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20200930090134.8723-3-john.ogness@linutronix.de --- diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 15cd73d..f5c2945 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1095,7 +1095,7 @@ static unsigned int __init add_to_rb(struct printk_ringbuffer *rb, return prb_record_text_space(&e); } -static char setup_text_buf[CONSOLE_EXT_LOG_MAX] __initdata; +static char setup_text_buf[LOG_LINE_MAX] __initdata; void __init setup_log_buf(int early) {