Allow longer parameter list, up to 64 characters, for earlyprintk
to support new coming parameters.

If the parsed string is longer than this buffer it will be cut up by
the buffer size.

No functional change intended.

Note, that 'console' case is already covered.

Signed-off-by: Andy Shevchenko <[email protected]>
---
 arch/x86/boot/early_serial_console.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/early_serial_console.c 
b/arch/x86/boot/early_serial_console.c
index 85a227a21f95..98aee6c6e374 100644
--- a/arch/x86/boot/early_serial_console.c
+++ b/arch/x86/boot/early_serial_console.c
@@ -83,7 +83,7 @@ static unsigned long parse_serial_port(const char *arg, int 
off, int *pos)
 static void parse_earlyprintk(void)
 {
        int baud = DEFAULT_BAUD;
-       char arg[32];
+       char arg[64];
        int pos = 0;
        unsigned long port = 0;
 
-- 
2.20.1

Reply via email to