Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354796
b: refs/heads/master
c: 852e4a8
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Greg Kroah-Hartman committed Jan 16, 2013
1 parent ac3acaf commit d1a7a19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 7277b2a1c687b728a4ec0511d2ae076aed6ed5b4
refs/heads/master: 852e4a8152b427c3f318bb0e1b5e938d64dcdc32
10 changes: 5 additions & 5 deletions trunk/drivers/tty/tty_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,17 +936,17 @@ void tty_ldisc_release(struct tty_struct *tty, struct tty_struct *o_tty)
* race with the set_ldisc code path.
*/

tty_lock_pair(tty, o_tty);
tty_ldisc_halt(tty);
tty_ldisc_flush_works(tty);
if (o_tty) {
if (o_tty)
tty_ldisc_halt(o_tty);

tty_ldisc_flush_works(tty);
if (o_tty)
tty_ldisc_flush_works(o_tty);
}

tty_lock_pair(tty, o_tty);
/* This will need doing differently if we need to lock */
tty_ldisc_kill(tty);

if (o_tty)
tty_ldisc_kill(o_tty);

Expand Down

0 comments on commit d1a7a19

Please sign in to comment.