aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_io.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r--drivers/char/tty_io.c2
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,
1347 * If we fail here just call release_tty to clean up. No need 1347 * If we fail here just call release_tty to clean up. No need
1348 * to decrement the use counts, as release_tty doesn't care. 1348 * to decrement the use counts, as release_tty doesn't care.
1349 */ 1349 */
1350 lock_kernel();
1351 retval = tty_ldisc_setup(tty, tty->link); 1350 retval = tty_ldisc_setup(tty, tty->link);
1352 unlock_kernel();
1353 if (retval) 1351 if (retval)
1354 goto release_mem_out; 1352 goto release_mem_out;
1355 return tty; 1353 return tty;