drivers:tty:fix up ENOIOCTLCMD error handling