[PATCH 4.14 32/91] tty: Avoid possible error pointer dereference at tty_ldisc_restore().