projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tty: Redo current tty locking
[linux-2.6-block.git]
/
drivers
/
s390
/
char
/
fs3270.c
diff --git
a/drivers/s390/char/fs3270.c
b/drivers/s390/char/fs3270.c
index 3ef5425d0eb834063f46f0714828ba5461f4694d..84fbc90480dcb858f310b6fdfab4403a110e4ca3 100644
(file)
--- a/
drivers/s390/char/fs3270.c
+++ b/
drivers/s390/char/fs3270.c
@@
-431,6
+431,7
@@
fs3270_open(struct inode *inode, struct file *filp)
tty = get_current_tty();
if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) {
tty_kref_put(tty);
+ mutex_unlock(&tty_mutex);
rc = -ENODEV;
goto out;
}