diff options
Diffstat (limited to 'drivers/tty/tty_buffer.c')
| -rw-r--r-- | drivers/tty/tty_buffer.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_buffer.c b/drivers/tty/tty_buffer.c index 9a479e61791a..3cd31e0d4bd9 100644 --- a/drivers/tty/tty_buffer.c +++ b/drivers/tty/tty_buffer.c @@ -450,7 +450,7 @@ receive_buf(struct tty_struct *tty, struct tty_buffer *head, int count)  		count = disc->ops->receive_buf2(tty, p, f, count);  	else {  		count = min_t(int, count, tty->receive_room); -		if (count) +		if (count && disc->ops->receive_buf)  			disc->ops->receive_buf(tty, p, f, count);  	}  	return count;  | 
