[PATCH 4.16 034/113] tty: Avoid possible error pointer dereference at tty_ldisc_restore().