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, 15 Mar 2013 20:23:29 +0000 (13:23 -0700)
commit503bded92da283b2f31d87e054c4c6d30c3c2340
tree9c959a78eacb0afd4bea2fb8dc5b337dba63473a
parentc51d41a1dd8f23a06a4ed651ebb9617de7f59368
tty: atmel_serial_probe(): index of atmel_ports[] fix

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c