We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c363402 commit d6aefa8Copy full SHA for d6aefa8
drivers/tty/tty_buffer.c
@@ -443,7 +443,8 @@ static void flush_to_ldisc(struct work_struct *work)
443
flag_buf = head->flag_buf_ptr + head->read;
444
head->read += count;
445
spin_unlock_irqrestore(&tty->buf.lock, flags);
446
- disc->ops->receive_buf(tty, char_buf,
+ if (disc->ops->receive_buf)
447
+ disc->ops->receive_buf(tty, char_buf,
448
flag_buf, count);
449
spin_lock_irqsave(&tty->buf.lock, flags);
450
}
0 commit comments