aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/drivers/ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/um/drivers/ssl.c')
-rw-r--r--arch/um/drivers/ssl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/um/drivers/ssl.c b/arch/um/drivers/ssl.c
index b4ecf8db8f09..875d60d0c6a2 100644
--- a/arch/um/drivers/ssl.c
+++ b/arch/um/drivers/ssl.c
@@ -97,7 +97,13 @@ static int ssl_remove(int n, char **error_out)
97 97
98static int ssl_open(struct tty_struct *tty, struct file *filp) 98static int ssl_open(struct tty_struct *tty, struct file *filp)
99{ 99{
100 return line_open(serial_lines, tty); 100 int err = line_open(serial_lines, tty);
101
102 if (err)
103 printk(KERN_ERR "Failed to open serial line %d, err = %d\n",
104 tty->index, err);
105
106 return err;
101} 107}
102 108
103#if 0 109#if 0