tty: push the BKL down into the handlers a bit
Start trying to untangle the remaining BKL mess Updated to fix missing unlock_kernel noted by Dan Carpenter Signed-off-by: Alan "I must be out of my tree" Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e8c62103fd
commit
eeb89d918c
@@ -659,7 +659,7 @@ static int __ptmx_open(struct inode *inode, struct file *filp)
|
||||
if (!retval)
|
||||
return 0;
|
||||
out1:
|
||||
tty_release_dev(filp);
|
||||
tty_release(inode, filp);
|
||||
return retval;
|
||||
out:
|
||||
devpts_kill_index(inode, index);
|
||||
|
Reference in New Issue
Block a user