aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/line.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-07-16 02:38:54 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:38 -0400
commitd14ad81f800a57d3f21f8e98556c728968883e9a (patch)
treecbe17039283dd51654aaa5a9ac4fae9233285d96 /arch/um/drivers/line.c
parent75886f21e3a53a298b097103fd52e83184a89c22 (diff)
uml: handle errors on opening host side of consoles
If the host side of a console can't be opened, this will now produce visible error messages. enable_chan now returns a status and this is passed up to con_open and ssl_open, which will complain if anything went wrong. The default host device for the serial line driver is now a pts device rather than a pty device since lots of hosts have LEGACY_PTYS disabled. This had always been failing on such hosts, but silently. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/drivers/line.c')
-rw-r--r--arch/um/drivers/line.c5
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){