Skip to contentSkip to conversation

i4l fix DLE masking in isdn_tty_try_read

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i4l fix DLE masking in isdn_tty_try_read

DLE masking was none functional since the new tty handling. Found by Peter Evertz <[email protected]>

---

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

d895418ed29eb92a72c5c2ef68a6dafeaa53b717

drivers/isdn/i4l/isdn_tty.c +1 -1
index 2ac9024..433389d 100644
@@ -82,7 +82,7 @@ isdn_tty_try_read(modem_info * info, str
 						int l = skb->len;
 						unsigned char *dp = skb->data;
 						while (--l) {
-							if (*skb->data == DLE)
+							if (*dp == DLE)
 								tty_insert_flip_char(tty, DLE, 0);
 							tty_insert_flip_char(tty, *dp++, 0);
 						}
Signature · 3 lines
Karsten Keil
SuSE Labs
ISDN development