Skip to contentSkip to conversation

fix processing of the last byte in isdn_readbchan_tty()

PATCH New Karsten Keil 1 participant 1 message Jun 26, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---

 drivers/isdn/i4l/isdn_common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

1bfb4ea878e3e73e64a5507d1a305517c1f2bbdd

drivers/isdn/i4l/isdn_common.c +1 -1
index 81accdf..b26e509 100644
@@ -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
 		}
Signature · 3 lines
Karsten Keil
SuSE Labs
ISDN development