Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210848
b: refs/heads/master
c: a0846f1
h: refs/heads/master
v: v3
  • Loading branch information
Dan Rosenberg authored and Greg Kroah-Hartman committed Sep 20, 2010
1 parent 483f8fe commit d6adc7c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc8f2a7608d855b911e35a33e771e6358c705c43
refs/heads/master: a0846f1868b11cd827bdfeaf4527d8b1b1c0b098
3 changes: 3 additions & 0 deletions trunk/drivers/usb/serial/mos7720.c
Original file line number Diff line number Diff line change
Expand Up @@ -2024,6 +2024,9 @@ static int mos7720_ioctl(struct tty_struct *tty, struct file *file,

case TIOCGICOUNT:
cnow = mos7720_port->icount;

memset(&icount, 0, sizeof(struct serial_icounter_struct));

icount.cts = cnow.cts;
icount.dsr = cnow.dsr;
icount.rng = cnow.rng;
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/usb/serial/mos7840.c
Original file line number Diff line number Diff line change
Expand Up @@ -2285,6 +2285,9 @@ static int mos7840_ioctl(struct tty_struct *tty, struct file *file,
case TIOCGICOUNT:
cnow = mos7840_port->icount;
smp_rmb();

memset(&icount, 0, sizeof(struct serial_icounter_struct));

icount.cts = cnow.cts;
icount.dsr = cnow.dsr;
icount.rng = cnow.rng;
Expand Down

0 comments on commit d6adc7c

Please sign in to comment.