[PATCH openEuler-5.10 68/73] tty: n_gsm: fix proper link termination after failed open