Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175363
b: refs/heads/master
c: 38c70b2
h: refs/heads/master
i:
  175361: 389f6c8
  175359: e3cdc93
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 03f2c6b commit a7514e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions 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: f18f9498e90327b9b0e245e191029e6e1996d203
refs/heads/master: 38c70b27f9502c31c1d0c29676275f7362cdb0d9
4 changes: 2 additions & 2 deletions trunk/drivers/char/tty_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,6 @@ static void do_tty_hangup(struct work_struct *work)
if (!tty)
return;

/* inuse_filps is protected by the single kernel lock */
lock_kernel();

spin_lock(&redirect_lock);
if (redirect && redirect->private_data == tty) {
Expand All @@ -515,6 +513,8 @@ static void do_tty_hangup(struct work_struct *work)
}
spin_unlock(&redirect_lock);

/* inuse_filps is protected by the single kernel lock */
lock_kernel();
check_tty_count(tty, "do_tty_hangup");
file_list_lock();
/* This breaks for file handles being sent over AF_UNIX sockets ? */
Expand Down

0 comments on commit a7514e1

Please sign in to comment.