Commit 8a831c58 authored by Tony Lindgren's avatar Tony Lindgren Committed by Greg Kroah-Hartman

printk: Don't try to parse DEVNAME:0.0 console options

Currently console_setup() tries to make a console index out of any digits
passed in the kernel command line for console. In the DEVNAME:0.0 case,
the name can contain a device IO address, so bail out on console names
with a ':'.
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20240327110021.59793-3-tony@atomide.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f03e8c10
...@@ -2504,6 +2504,10 @@ static int __init console_setup(char *str) ...@@ -2504,6 +2504,10 @@ static int __init console_setup(char *str)
if (console_opt_save(str, brl_options)) if (console_opt_save(str, brl_options))
return 1; return 1;
/* Don't attempt to parse a DEVNAME:0.0 style console */
if (strchr(str, ':'))
return 1;
/* /*
* Decode str into name, index, options. * Decode str into name, index, options.
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment