[PATCH kernel-4.19 089/337] serial_core: Check for port state when tty is in error state