Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364239
b: refs/heads/master
c: 8bde965
h: refs/heads/master
i:
  364237: 79c8f10
  364235: dbc6f12
  364231: de04956
  364223: 8b44792
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed Mar 18, 2013
1 parent dfdd7dd commit f7dde2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 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: b12d8dc2dbe2d2d1d6eec314d586b1eed75756dc
refs/heads/master: 8bde9658a0e6a7098dcda1ce6ea6b278029644b4
9 changes: 7 additions & 2 deletions trunk/drivers/tty/tty_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,14 @@ EXPORT_SYMBOL(tty_port_tty_set);
static void tty_port_shutdown(struct tty_port *port)
{
mutex_lock(&port->mutex);
if (port->ops->shutdown && !port->console &&
test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags))
if (port->console)
goto out;

if (test_and_clear_bit(ASYNCB_INITIALIZED, &port->flags)) {
if (port->ops->shutdown)
port->ops->shutdown(port);
}
out:
mutex_unlock(&port->mutex);
}

Expand Down

0 comments on commit f7dde2f

Please sign in to comment.