/* Process a parity error and queue the right data to indicate the error case if necessary. Locking as per n_tty_receive_buf.  */
static void n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c)
/* Process a parity error and queue the right data to indicate the error case if necessary. Locking as per n_tty_receive_buf.  */
static void n_tty_receive_parity_error(struct tty_struct *tty, unsigned char c)
{
	if (I_IGNPAR(tty))
		return;
	if (I_PARMRK(tty)) {
		put_tty_queue('\377', tty);
		put_tty_queue('\0', tty);
		put_tty_queue(c, tty);
	} else	if (I_INPCK(tty))
		put_tty_queue('\0', tty);
	else
		put_tty_queue(c, tty);
	wake_up_interruptible(&tty->read_wait);
}