X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fpty.c;h=4cea8c05c81b76306ebc8830f693de6b5766e260;hb=5e3b93f248c98873cc843e83092bb8da92ac85a2;hp=fcbb325477e407abcae619408e6c85c1ecbb6d4e;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/char/pty.c b/drivers/char/pty.c index fcbb32547..4cea8c05c 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c @@ -144,14 +144,14 @@ static int pty_write(struct tty_struct * tty, int from_user, buf += n; c += n; count -= n; - to->ldisc.receive_buf(to, temp_buffer, NULL, n); + to->ldisc.receive_buf(to, temp_buffer, 0, n); } up(&tty->flip.pty_sem); } else { c = to->ldisc.receive_room(to); if (c > count) c = count; - to->ldisc.receive_buf(to, buf, NULL, c); + to->ldisc.receive_buf(to, buf, 0, c); } return c;