diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c index 9eea8d1a0e8a..c0deec0e6af4 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -2219,7 +2220,7 @@ uart_parse_options(const char *options, int *baud, int *parity, const char *s = options; *baud = simple_strtoul(s, NULL, 10); - while (*s >= '0' && *s <= '9') + while (isdigit(*s)) s++; if (*s) *parity = *s++;