[PATCH 4.19 235/252] tty: fix out-of-bounds access in tty_driver_lookup_tty()