diff options
Diffstat (limited to 'drivers/tty/nozomi.c')
-rw-r--r-- | drivers/tty/nozomi.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index 941fe8060ea5..afdd7732d925 100644 --- a/drivers/tty/nozomi.c +++ b/drivers/tty/nozomi.c | |||
@@ -1272,15 +1272,11 @@ static irqreturn_t interrupt_handler(int irq, void *dev_id) | |||
1272 | 1272 | ||
1273 | exit_handler: | 1273 | exit_handler: |
1274 | spin_unlock(&dc->spin_mutex); | 1274 | spin_unlock(&dc->spin_mutex); |
1275 | for (a = 0; a < NOZOMI_MAX_PORTS; a++) { | 1275 | |
1276 | struct tty_struct *tty; | 1276 | for (a = 0; a < NOZOMI_MAX_PORTS; a++) |
1277 | if (test_and_clear_bit(a, &dc->flip)) { | 1277 | if (test_and_clear_bit(a, &dc->flip)) |
1278 | tty = tty_port_tty_get(&dc->port[a].port); | 1278 | tty_flip_buffer_push(&dc->port[a].port); |
1279 | if (tty) | 1279 | |
1280 | tty_flip_buffer_push(tty); | ||
1281 | tty_kref_put(tty); | ||
1282 | } | ||
1283 | } | ||
1284 | return IRQ_HANDLED; | 1280 | return IRQ_HANDLED; |
1285 | none: | 1281 | none: |
1286 | spin_unlock(&dc->spin_mutex); | 1282 | spin_unlock(&dc->spin_mutex); |