From 7fcf335e588d82f8e44cb8b94d7d20f16e2c8e2c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 1 Nov 2012 16:43:49 +0000 Subject: [PATCH] --- yaml --- r: 338407 b: refs/heads/master c: 4bd82136cdf04f3a8d50e20c1b76da750f75f2db h: refs/heads/master i: 338405: 5d2c2ec875114ba8c6923477dfdcefa01ec0bc7d 338403: 6c242e29fab03dcca79c1d0303aba84367ce2bed 338399: 771fefc2134fd2bc20ef647e057bb49b93e6c828 v: v3 --- [refs] | 2 +- trunk/drivers/tty/moxa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 6693e84c7d7f..500f84198553 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e8823f1ca8d5a0c5d69a8862682ee8bde26990ca +refs/heads/master: 4bd82136cdf04f3a8d50e20c1b76da750f75f2db diff --git a/trunk/drivers/tty/moxa.c b/trunk/drivers/tty/moxa.c index 56e616b9109a..9b57aae139f6 100644 --- a/trunk/drivers/tty/moxa.c +++ b/trunk/drivers/tty/moxa.c @@ -1370,7 +1370,7 @@ static void moxa_new_dcdstate(struct moxa_port *p, u8 dcd) p->DCDState = dcd; spin_unlock_irqrestore(&p->port.lock, flags); tty = tty_port_tty_get(&p->port); - if (tty && C_CLOCAL(tty) && !dcd) + if (tty && !C_CLOCAL(tty) && !dcd) tty_hangup(tty); tty_kref_put(tty); }