[PATCH 3.16 195/366] tty: handle the case where we cannot restore a line discipline