[openEuler-5.10 369/496] tty: n_gsm: fix missing corner cases in gsmld_poll()