From: Karsten Keil Date: Mon, 26 Jun 2006 18:21:01 +0000 (+0200) Subject: [PATCH] fix processing of the last byte in isdn_readbchan_tty() X-Git-Tag: v2.6.18-rc1~599 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=916d15445f4ad2a9018e5451760734f36083be77;p=linux-2.6-omap-h63xx.git [PATCH] fix processing of the last byte in isdn_readbchan_tty() The changes in the tty handling contain a bug while accessing the last byte in the skb. Since special sequence for control of DTMF and FAX via ttyI* devices handled via this path, these services do not work anymore. Signed-off-by: Karsten Keil Signed-off-by: Linus Torvalds --- diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index 81accdf3516..b26e509ec75 100644 --- a/drivers/isdn/i4l/isdn_common.c +++ b/drivers/isdn/i4l/isdn_common.c @@ -933,7 +933,7 @@ isdn_readbchan_tty(int di, int channel, struct tty_struct *tty, int cisco_hack) count_put = count_pull; if(count_put > 1) tty_insert_flip_string(tty, skb->data, count_put - 1); - last = skb->data[count_put] - 1; + last = skb->data[count_put - 1]; len -= count_put; #ifdef CONFIG_ISDN_AUDIO }