Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267316
b: refs/heads/master
c: bafb0bd
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent 1dbcebc commit bee6bcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 426929f8d3514d7f727b8c464d1eeeaf74b21519
refs/heads/master: bafb0bd24d7e0e0124318625b239a55d58c757a2
2 changes: 1 addition & 1 deletion trunk/drivers/tty/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1253,7 +1253,6 @@ static void uart_close(struct tty_struct *tty, struct file *filp)

pr_debug("uart_close(%d) called\n", uport->line);

mutex_lock(&port->mutex);
spin_lock_irqsave(&port->lock, flags);

if (tty_hung_up_p(filp)) {
Expand Down Expand Up @@ -1312,6 +1311,7 @@ static void uart_close(struct tty_struct *tty, struct file *filp)
uart_wait_until_sent(tty, uport->timeout);
}

mutex_lock(&port->mutex);
uart_shutdown(tty, state);
uart_flush_buffer(tty);

Expand Down

0 comments on commit bee6bcb

Please sign in to comment.