Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Karsten Keil and committed by
Linus Torvalds
916d1544 5fd571cb

+1 -1
+1 -1
drivers/isdn/i4l/isdn_common.c
··· 933 933 count_put = count_pull; 934 934 if(count_put > 1) 935 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 937 len -= count_put; 938 938 #ifdef CONFIG_ISDN_AUDIO 939 939 }