aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-01-30 15:14:32 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-02 18:10:46 -0500
commitd3bda5298aad98c7a27678bdd0dd9d008ab9e685 (patch)
tree40b098fd53e4f811277e9e215ec477c3da2856ea /drivers/tty/tty_io.c
parenta50f724a432997321cabb6c9e665c28e34850f78 (diff)
TTY: get rid of BTM around devpts_*
devpts operations are protected by inode mutexes and dentry refcounting. There is no need to hold BTM. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r--drivers/tty/tty_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 44736f9e61d7..ea7ebe22a16c 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -1789,11 +1789,11 @@ int tty_release(struct inode *inode, struct file *filp)
1789 * the slots and preserving the termios structure. 1789 * the slots and preserving the termios structure.
1790 */ 1790 */
1791 release_tty(tty, idx); 1791 release_tty(tty, idx);
1792 tty_unlock();
1792 1793
1793 /* Make this pty number available for reallocation */ 1794 /* Make this pty number available for reallocation */
1794 if (devpts) 1795 if (devpts)
1795 devpts_kill_index(inode, idx); 1796 devpts_kill_index(inode, idx);
1796 tty_unlock();
1797 return 0; 1797 return 0;
1798} 1798}
1799 1799