[PATCH 4.14 57/75] ipack: ipoctal: fix tty-registration error handling