X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fchar%2Fpty.c;h=fcbb325477e407abcae619408e6c85c1ecbb6d4e;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=4cea8c05c81b76306ebc8830f693de6b5766e260;hpb=db216c3d5e4c040e557a50f8f5d35d5c415e8c1c;p=linux-2.6.git diff --git a/drivers/char/pty.c b/drivers/char/pty.c index 4cea8c05c..fcbb32547 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, 0, n); + to->ldisc.receive_buf(to, temp_buffer, NULL, n); } up(&tty->flip.pty_sem); } else { c = to->ldisc.receive_room(to); if (c > count) c = count; - to->ldisc.receive_buf(to, buf, 0, c); + to->ldisc.receive_buf(to, buf, NULL, c); } return c;