drivers/tty/n_tty.c: fix CVE-2014-0196