diff options
Diffstat (limited to 'drivers/serial/8250.c')
-rw-r--r-- | drivers/serial/8250.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index c66bb44c4747..006617e2211d 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -2486,7 +2486,7 @@ static void serial8250_config_port(struct uart_port *port, int flags) | |||
2486 | static int | 2486 | static int |
2487 | serial8250_verify_port(struct uart_port *port, struct serial_struct *ser) | 2487 | serial8250_verify_port(struct uart_port *port, struct serial_struct *ser) |
2488 | { | 2488 | { |
2489 | if (ser->irq >= NR_IRQS || ser->irq < 0 || | 2489 | if (ser->irq >= nr_irqs || ser->irq < 0 || |
2490 | ser->baud_base < 9600 || ser->type < PORT_UNKNOWN || | 2490 | ser->baud_base < 9600 || ser->type < PORT_UNKNOWN || |
2491 | ser->type >= ARRAY_SIZE(uart_config) || ser->type == PORT_CIRRUS || | 2491 | ser->type >= ARRAY_SIZE(uart_config) || ser->type == PORT_CIRRUS || |
2492 | ser->type == PORT_STARTECH) | 2492 | ser->type == PORT_STARTECH) |