lkml.org 
[lkml]   [2018]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 5/6] x86/boot: Allow longer parameter list for earlyprintk

* Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:

> Allow longer parameter list for earlyprintk to support new coming
> parameters.
>
> No functional change intended.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> 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 8cb7b0e8fe98..ef10926ab9e5 100644
> --- a/arch/x86/boot/early_serial_console.c
> +++ b/arch/x86/boot/early_serial_console.c
> @@ -90,7 +90,7 @@ static void early_serial_init(unsigned long port, int baud)
> static void parse_earlyprintk(void)
> {
> int baud = DEFAULT_BAUD;
> - char arg[32];
> + char arg[64];
> int pos = 0;
> unsigned long port = 0;

BTW., what happens if the parsed string is longer than this buffer?

Thanks,

Ingo

\
 
 \ /
  Last update: 2018-01-16 04:12    [W:0.273 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site