@@ -204,7 +204,7 @@ static __init void early_serial_init(char *s)
* Lastly, initialize the hardware
*/
if (*s) {
- if (strcmp(s, "nocfg") == 0)
+ if (strncmp(s, "nocfg", 5) == 0)
/* Sometimes, we want to leave the UART alone
* and assume the BIOS has set it up correctly.
* "nocfg" tells us this is the case, and we
@@ -320,7 +320,7 @@ static __init void early_pci_serial_init(char *s)
* Lastly, initialize the hardware
*/
if (*s) {
- if (strcmp(s, "nocfg") == 0)
+ if (strncmp(s, "nocfg", 5) == 0)
/* Sometimes, we want to leave the UART alone
* and assume the BIOS has set it up correctly.
* "nocfg" tells us this is the case, and we
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> --- arch/x86/kernel/early_printk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)