printk: Don't try to parse DEVNAME:0.0 console options
authorTony Lindgren <tony@atomide.com>
Wed, 27 Mar 2024 10:59:36 +0000 (12:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Apr 2024 13:30:13 +0000 (15:30 +0200)
commit8a831c584e6e80cf68f79893dc395c16cdf47dc8
treeef5a54ea429ad2e75e94b1f644fd4fc5d822b0ec
parentf03e8c1060f86c23eb49bafee99d9fcbd1c1bd77
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: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20240327110021.59793-3-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk/printk.c