[PATCH 6.1 131/200] tty: fix out-of-bounds access in tty_driver_lookup_tty()