[PATCH 1/4 v3] serial: vt8500: Fix range-checking on vt8500_uart_ports

2013-01-16 Thread Tony Prisk
Fix two instances where the index to vt8500_uart_ports is tested against > VT8500_MAX_PORTS. Correct usage should be >= VT8500_MAX_PORTS. Signed-off-by: Tony Prisk --- drivers/tty/serial/vt8500_serial.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 1/4 v3] serial: vt8500: Fix range-checking on vt8500_uart_ports

2013-01-16 Thread Tony Prisk
Fix two instances where the index to vt8500_uart_ports is tested against VT8500_MAX_PORTS. Correct usage should be = VT8500_MAX_PORTS. Signed-off-by: Tony Prisk li...@prisktech.co.nz --- drivers/tty/serial/vt8500_serial.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git