* [PATCH] fix processing of the last byte in isdn_readbchan_tty()
@ 2006-06-26 18:21 Karsten Keil
0 siblings, 0 replies; only message in thread
From: Karsten Keil @ 2006-06-26 18:21 UTC (permalink / raw)
To: linux-kernel, Linus Torvalds, Andrew Morton; +Cc: Greg KH
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>
---
drivers/isdn/i4l/isdn_common.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
1bfb4ea878e3e73e64a5507d1a305517c1f2bbdd
diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
index 81accdf..b26e509 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,
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
}
--
Karsten Keil
SuSE Labs
ISDN development
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-06-26 19:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-26 18:21 [PATCH] fix processing of the last byte in isdn_readbchan_tty() Karsten Keil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®