[PATCH openEuler-1.0-LTS 58/62] tty: n_gsm: fix proper link termination after failed open