[PATCH 3.16 196/366] tty: Avoid possible error pointer dereference at tty_ldisc_restore().