Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325769
b: refs/heads/master
c: 43eca0a
h: refs/heads/master
i:
  325767: 45907f5
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent d201c09 commit fc02998
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 84c3b84860440a9e3a3666c14112f41311b8f623
refs/heads/master: 43eca0aef73cc6f0d37ad139f1cbb810e62e409d
11 changes: 7 additions & 4 deletions trunk/drivers/tty/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -2501,9 +2501,12 @@ void uart_handle_dcd_change(struct uart_port *uport, unsigned int status)
{
struct uart_state *state = uport->state;
struct tty_port *port = &state->port;
struct tty_ldisc *ld = tty_ldisc_ref(port->tty);
struct tty_ldisc *ld = NULL;
struct pps_event_time ts;
struct tty_struct *tty = port->tty;

if (tty)
ld = tty_ldisc_ref(tty);
if (ld && ld->ops->dcd_change)
pps_get_ts(&ts);

Expand All @@ -2516,12 +2519,12 @@ void uart_handle_dcd_change(struct uart_port *uport, unsigned int status)
if (port->flags & ASYNC_CHECK_CD) {
if (status)
wake_up_interruptible(&port->open_wait);
else if (port->tty)
tty_hangup(port->tty);
else if (tty)
tty_hangup(tty);
}

if (ld && ld->ops->dcd_change)
ld->ops->dcd_change(port->tty, status, &ts);
ld->ops->dcd_change(tty, status, &ts);
if (ld)
tty_ldisc_deref(ld);
}
Expand Down

0 comments on commit fc02998

Please sign in to comment.