diff options
author | Alan Cox <alan@linux.intel.com> | 2009-11-30 16:18:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-12-12 02:18:08 +0300 |
commit | f18f9498e90327b9b0e245e191029e6e1996d203 (patch) | |
tree | f60ba09838bfce3bac5cecf902e8012348490e62 /drivers/char/tty_io.c | |
parent | eeb89d918c2fa2b809e464136bbafdaec2aacb30 (diff) | |
download | linux-f18f9498e90327b9b0e245e191029e6e1996d203.tar.xz |
tty: Push the lock down further into the ldisc code
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 1e2413093615..c408c81c06a0 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c @@ -1347,9 +1347,7 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx, * If we fail here just call release_tty to clean up. No need * to decrement the use counts, as release_tty doesn't care. */ - lock_kernel(); retval = tty_ldisc_setup(tty, tty->link); - unlock_kernel(); if (retval) goto release_mem_out; return tty; |