[openEuler-5.10-LTS 374/501] tty: n_gsm: fix missing corner cases in gsmld_poll()