diff options
Diffstat (limited to 'arch/um/drivers/line.c')
-rw-r--r-- | arch/um/drivers/line.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/um/drivers/line.c b/arch/um/drivers/line.c index 4bd40bb43ec2..1fb3e51108b9 100644 --- a/arch/um/drivers/line.c +++ b/arch/um/drivers/line.c | |||
@@ -454,7 +454,10 @@ int line_open(struct line *lines, struct tty_struct *tty) | |||
454 | tty->driver_data = line; | 454 | tty->driver_data = line; |
455 | line->tty = tty; | 455 | line->tty = tty; |
456 | 456 | ||
457 | enable_chan(line); | 457 | err = enable_chan(line); |
458 | if (err) | ||
459 | return err; | ||
460 | |||
458 | INIT_DELAYED_WORK(&line->task, line_timer_cb); | 461 | INIT_DELAYED_WORK(&line->task, line_timer_cb); |
459 | 462 | ||
460 | if(!line->sigio){ | 463 | if(!line->sigio){ |