提交 ca6f8792 编写于 作者: K Karsten Keil 提交者: Linus Torvalds

[PATCH] i4l fix DLE masking in isdn_tty_try_read

DLE masking was non-functional since the new tty handling.

Found by Peter Evertz <leo2@pec.homeip.net>
Signed-off-by: NKarsten Keil <kkeil@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 91bf4602
...@@ -82,7 +82,7 @@ isdn_tty_try_read(modem_info * info, struct sk_buff *skb) ...@@ -82,7 +82,7 @@ isdn_tty_try_read(modem_info * info, struct sk_buff *skb)
int l = skb->len; int l = skb->len;
unsigned char *dp = skb->data; unsigned char *dp = skb->data;
while (--l) { while (--l) {
if (*skb->data == DLE) if (*dp == DLE)
tty_insert_flip_char(tty, DLE, 0); tty_insert_flip_char(tty, DLE, 0);
tty_insert_flip_char(tty, *dp++, 0); tty_insert_flip_char(tty, *dp++, 0);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册