diff options
Diffstat (limited to 'drivers/s390/char/fs3270.c')
-rw-r--r-- | drivers/s390/char/fs3270.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 3ef5425d0eb8..84fbc90480dc 100644 --- a/drivers/s390/char/fs3270.c +++ b/drivers/s390/char/fs3270.c | |||
@@ -431,6 +431,7 @@ fs3270_open(struct inode *inode, struct file *filp) | |||
431 | tty = get_current_tty(); | 431 | tty = get_current_tty(); |
432 | if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) { | 432 | if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) { |
433 | tty_kref_put(tty); | 433 | tty_kref_put(tty); |
434 | mutex_unlock(&tty_mutex); | ||
434 | rc = -ENODEV; | 435 | rc = -ENODEV; |
435 | goto out; | 436 | goto out; |
436 | } | 437 | } |