diff options
author | Karsten Keil <kkeil@suse.de> | 2006-06-26 14:21:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 15:41:54 -0400 |
commit | 916d15445f4ad2a9018e5451760734f36083be77 (patch) | |
tree | cd86d73ec501537fc202fbc2f90381b56ea0bc1d /drivers/isdn | |
parent | 5fd571cbc13db113bda26c20673e1ec54bfd26b4 (diff) |
[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 <kkeil@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn')
-rw-r--r-- | drivers/isdn/i4l/isdn_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c index 81accdf35168..b26e509ec759 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) | |||
933 | count_put = count_pull; | 933 | count_put = count_pull; |
934 | if(count_put > 1) | 934 | if(count_put > 1) |
935 | tty_insert_flip_string(tty, skb->data, count_put - 1); | 935 | tty_insert_flip_string(tty, skb->data, count_put - 1); |
936 | last = skb->data[count_put] - 1; | 936 | last = skb->data[count_put - 1]; |
937 | len -= count_put; | 937 | len -= count_put; |
938 | #ifdef CONFIG_ISDN_AUDIO | 938 | #ifdef CONFIG_ISDN_AUDIO |
939 | } | 939 | } |