mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-09-22 04:31:58 +08:00
[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: Karsten Keil <kkeil@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
91bf460269
commit
ca6f8792bd
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user