Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 916d1544 authored by Karsten Keil's avatar Karsten Keil Committed by Linus Torvalds
Browse files

[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: default avatarKarsten Keil <kkeil@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5fd571cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -933,7 +933,7 @@ isdn_readbchan_tty(int di, int channel, struct tty_struct *tty, int cisco_hack)
			count_put = count_pull;
			count_put = count_pull;
			if(count_put > 1)
			if(count_put > 1)
				tty_insert_flip_string(tty, skb->data, 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;
			len -= count_put;
#ifdef CONFIG_ISDN_AUDIO
#ifdef CONFIG_ISDN_AUDIO
		}
		}