serial: mxs: fix buffer overflow
authorWolfram Sang <wsa@the-dreams.de>
Fri, 19 Apr 2013 19:12:17 +0000 (21:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Apr 2013 17:22:21 +0000 (10:22 -0700)
commit4829e7650f8a40645e4e32b26a37fb833a5e75f0
tree5f04c4596c310c031d2f4e5c9d8a673e0435483a
parent78506f223a7bb7d47b1772592932921689adc6d8
serial: mxs: fix buffer overflow

SMATCH correctly found an off-by-one error:

drivers/tty/serial/mxs-auart.c:889 auart_console_write() error: buffer overflow 'auart_port' 5 <= 5

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c