tty: atmel_serial_probe(): index of atmel_ports[] fix
authorPawel Wieczorkiewicz <wpawel@gmail.com>
Wed, 20 Feb 2013 16:26:20 +0000 (17:26 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Apr 2013 17:04:18 +0000 (10:04 -0700)
commitd32cdd3f703100a028276ac9a6afb848a203906e
treed21122dc249427f765bc56a4dce0cf97edae5db5
parent2f21ae28ec704aa79dbbb912f20dd687ca0c001c
tty: atmel_serial_probe(): index of atmel_ports[] fix

commit 503bded92da283b2f31d87e054c4c6d30c3c2340 upstream.

Index of atmel_ports[ATMEL_MAX_UART] should be smaller
than ATMEL_MAX_UART.

Signed-off-by: Pawel Wieczorkiewicz <wpawel@gmail.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c