[PATCH 4.14 28/31] tty: n_gsm: fix proper link termination after failed open