Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308532
b: refs/heads/master
c: d3ca8b6
h: refs/heads/master
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed May 29, 2012
1 parent 1815b08 commit 2551250
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a01ee165a132fadb57659d26246e340d6ac53265
refs/heads/master: d3ca8b64b97ef4dc54d7bb0b88bbc01a1fca8cb9
2 changes: 0 additions & 2 deletions trunk/drivers/tty/pty.c
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,6 @@ static int ptmx_open(struct inode *inode, struct file *filp)
mutex_unlock(&devpts_mutex);

mutex_lock(&tty_mutex);
mutex_lock(&devpts_mutex);
tty = tty_init_dev(ptm_driver, index);

if (IS_ERR(tty)) {
Expand All @@ -643,7 +642,6 @@ static int ptmx_open(struct inode *inode, struct file *filp)

/* The tty returned here is locked so we can safely
drop the mutex */
mutex_unlock(&devpts_mutex);
mutex_unlock(&tty_mutex);

set_bit(TTY_PTY_LOCK, &tty->flags); /* LOCK THE SLAVE */
Expand Down

0 comments on commit 2551250

Please sign in to comment.