Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43664
b: refs/heads/master
c: 7e8bcf9
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Linus Torvalds committed Dec 8, 2006
1 parent 8e61470 commit 18366d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6faa3778ff69309bd3673412f0eb1e7ffee9ff83
refs/heads/master: 7e8bcf9add02176be7e052b1f0675f7a462eaf3d
12 changes: 2 additions & 10 deletions trunk/drivers/char/mxser_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -1065,7 +1065,6 @@ static void mxser_close(struct tty_struct *tty, struct file *filp)

unsigned long timeout;
unsigned long flags;
struct tty_ldisc *ld;

if (tty->index == MXSER_PORTS)
return;
Expand Down Expand Up @@ -1145,12 +1144,7 @@ static void mxser_close(struct tty_struct *tty, struct file *filp)
if (tty->driver->flush_buffer)
tty->driver->flush_buffer(tty);

ld = tty_ldisc_ref(tty);
if (ld) {
if (ld->flush_buffer)
ld->flush_buffer(tty);
tty_ldisc_deref(ld);
}
tty_ldisc_flush(tty);

tty->closing = 0;
info->event = 0;
Expand Down Expand Up @@ -1303,9 +1297,7 @@ static void mxser_flush_buffer(struct tty_struct *tty)
spin_unlock_irqrestore(&info->slock, flags);
/* above added by shinhay */

wake_up_interruptible(&tty->write_wait);
if ((tty->flags & (1 << TTY_DO_WRITE_WAKEUP)) && tty->ldisc.write_wakeup)
(tty->ldisc.write_wakeup) (tty);
tty_wakeup(tty);
}

/*
Expand Down

0 comments on commit 18366d3

Please sign in to comment.