From 976d20c55fea764f36f8ebc9a615b897f6b8ef35 Mon Sep 17 00:00:00 2001 From: Matthias Goebl Date: Fri, 4 Jan 2008 03:45:28 -0800 Subject: [PATCH] --- yaml --- r: 75271 b: refs/heads/master c: 7fde4d779b83898851959f837c9b26fe07ee91c9 h: refs/heads/master i: 75269: 0b7f11b29e734a315892c94fccfc7d6405ff5bab 75267: b18bf2910e1fe849fb6db29fe37bc2bc89ae6704 75263: 37a838c64e712b77bf5c209dbda02f883d8d5b09 v: v3 --- [refs] | 2 +- trunk/drivers/isdn/i4l/isdn_common.c | 3 +++ trunk/drivers/isdn/i4l/isdn_tty.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index e64557e21981..9e2e6728476b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 00409bb045887ec5e7b9e351bc080c38ab6bfd33 +refs/heads/master: 7fde4d779b83898851959f837c9b26fe07ee91c9 diff --git a/trunk/drivers/isdn/i4l/isdn_common.c b/trunk/drivers/isdn/i4l/isdn_common.c index d6952959d72a..9cef6fcf587b 100644 --- a/trunk/drivers/isdn/i4l/isdn_common.c +++ b/trunk/drivers/isdn/i4l/isdn_common.c @@ -914,6 +914,9 @@ isdn_readbchan_tty(int di, int channel, struct tty_struct *tty, int cisco_hack) dflag = 0; count_pull = count_put = 0; while ((count_pull < skb->len) && (len > 0)) { + /* push every character but the last to the tty buffer directly */ + if ( count_put ) + tty_insert_flip_char(tty, last, TTY_NORMAL); len--; if (dev->drv[di]->DLEflag & DLEmask) { last = DLE; diff --git a/trunk/drivers/isdn/i4l/isdn_tty.c b/trunk/drivers/isdn/i4l/isdn_tty.c index 24679a3f5596..9cb6e5021adb 100644 --- a/trunk/drivers/isdn/i4l/isdn_tty.c +++ b/trunk/drivers/isdn/i4l/isdn_tty.c @@ -85,6 +85,8 @@ isdn_tty_try_read(modem_info * info, struct sk_buff *skb) tty_insert_flip_char(tty, DLE, 0); tty_insert_flip_char(tty, *dp++, 0); } + if (*dp == DLE) + tty_insert_flip_char(tty, DLE, 0); last = *dp; } else { #endif