Skip to content

Commit 916d154

Browse files
Karsten KeilLinus Torvalds
authored andcommitted
[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>
1 parent 5fd571c commit 916d154

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/isdn/i4l/isdn_common.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ isdn_readbchan_tty(int di, int channel, struct tty_struct *tty, int cisco_hack)
933933
count_put = count_pull;
934934
if(count_put > 1)
935935
tty_insert_flip_string(tty, skb->data, count_put - 1);
936-
last = skb->data[count_put] - 1;
936+
last = skb->data[count_put - 1];
937937
len -= count_put;
938938
#ifdef CONFIG_ISDN_AUDIO
939939
}

0 commit comments

Comments
 (0)