[PATCH 6.2 143/211] tty: fix out-of-bounds access in tty_driver_lookup_tty()