summaryrefslogtreecommitdiff
path: root/drivers/tty/vt/vc_screen.c
diff options
context:
space:
mode:
authorAlan Cox <alan@linux.intel.com>2012-03-02 18:59:20 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-08 23:10:27 +0400
commit4001d7b7fc271052ebff43f327c26dc64806bbdf (patch)
tree0ed1daaf95b5e1e7ce73589b4b25e88ac0b60461 /drivers/tty/vt/vc_screen.c
parentedab558feba1e2826ae8d65506168d7ccea7aad9 (diff)
downloadlinux-4001d7b7fc271052ebff43f327c26dc64806bbdf.tar.xz
vt: push down the tty lock so we can see what is left to tackle
At this point we have the tty_lock guarding a couple of oddities, plus the translation and unimap still. We also extend the console_lock in a couple of spots where coverage is wrong and switch vcs_open to use the right lock ! [Fixed the locking issue Jiri reported] Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt/vc_screen.c')
-rw-r--r--drivers/tty/vt/vc_screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/vt/vc_screen.c b/drivers/tty/vt/vc_screen.c
index 7a367ff5122b..fa7268a93c06 100644
--- a/drivers/tty/vt/vc_screen.c
+++ b/drivers/tty/vt/vc_screen.c
@@ -608,10 +608,10 @@ vcs_open(struct inode *inode, struct file *filp)
unsigned int currcons = iminor(inode) & 127;
int ret = 0;
- tty_lock();
+ console_lock();
if(currcons && !vc_cons_allocated(currcons-1))
ret = -ENXIO;
- tty_unlock();
+ console_unlock();
return ret;
}