projects
/
deliverable
/
linux.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
[deliverable/linux.git]
/
drivers
/
s390
/
char
/
fs3270.c
diff --git
a/drivers/s390/char/fs3270.c
b/drivers/s390/char/fs3270.c
index d18e6d2e0b49dbac1f63d8a62483326ea7a1dea7..84fbc90480dcb858f310b6fdfab4403a110e4ca3 100644
(file)
--- a/
drivers/s390/char/fs3270.c
+++ b/
drivers/s390/char/fs3270.c
@@
-430,11
+430,13
@@
fs3270_open(struct inode *inode, struct file *filp)
mutex_lock(&tty_mutex);
tty = get_current_tty();
if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) {
mutex_lock(&tty_mutex);
tty = get_current_tty();
if (!tty || tty->driver->major != IBM_TTY3270_MAJOR) {
+ tty_kref_put(tty);
mutex_unlock(&tty_mutex);
rc = -ENODEV;
goto out;
}
minor = tty->index + RAW3270_FIRSTMINOR;
mutex_unlock(&tty_mutex);
rc = -ENODEV;
goto out;
}
minor = tty->index + RAW3270_FIRSTMINOR;
+ tty_kref_put(tty);
mutex_unlock(&tty_mutex);
}
/* Check if some other program is already using fullscreen mode. */
mutex_unlock(&tty_mutex);
}
/* Check if some other program is already using fullscreen mode. */
This page took
0.034578 seconds
and
5
git commands to generate.