[PATCH openEuler-1.0-LTS 08/10] tty: fix out-of-bounds access in tty_driver_lookup_tty()