diff options
author | David S. Miller <davem@davemloft.net> | 2010-01-23 01:45:46 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-23 01:45:46 -0500 |
commit | 6be325719b3e54624397e413efd4b33a997e55a3 (patch) | |
tree | 57f321a56794cab2222e179b16731e0d76a4a68a /drivers/char/tty_io.c | |
parent | 26d92f9276a56d55511a427fb70bd70886af647a (diff) | |
parent | 92dcffb916d309aa01778bf8963a6932e4014d07 (diff) |
Merge branch 'master' of /home/davem/src/GIT/linux-2.6/
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 684f0e0b175e..c6f3b48be9dd 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -516,7 +516,6 @@ static void do_tty_hangup(struct work_struct *work) | |||
516 | /* inuse_filps is protected by the single kernel lock */ | 516 | /* inuse_filps is protected by the single kernel lock */ |
517 | lock_kernel(); | 517 | lock_kernel(); |
518 | check_tty_count(tty, "do_tty_hangup"); | 518 | check_tty_count(tty, "do_tty_hangup"); |
519 | unlock_kernel(); | ||
520 | 519 | ||
521 | file_list_lock(); | 520 | file_list_lock(); |
522 | /* This breaks for file handles being sent over AF_UNIX sockets ? */ | 521 | /* This breaks for file handles being sent over AF_UNIX sockets ? */ |
@@ -531,7 +530,6 @@ static void do_tty_hangup(struct work_struct *work) | |||
531 | } | 530 | } |
532 | file_list_unlock(); | 531 | file_list_unlock(); |
533 | 532 | ||
534 | lock_kernel(); | ||
535 | tty_ldisc_hangup(tty); | 533 | tty_ldisc_hangup(tty); |
536 | 534 | ||
537 | read_lock(&tasklist_lock); | 535 | read_lock(&tasklist_lock); |
@@ -1953,8 +1951,8 @@ static int tty_fasync(int fd, struct file *filp, int on) | |||
1953 | pid = task_pid(current); | 1951 | pid = task_pid(current); |
1954 | type = PIDTYPE_PID; | 1952 | type = PIDTYPE_PID; |
1955 | } | 1953 | } |
1956 | spin_unlock_irqrestore(&tty->ctrl_lock, flags); | ||
1957 | retval = __f_setown(filp, pid, type, 0); | 1954 | retval = __f_setown(filp, pid, type, 0); |
1955 | spin_unlock_irqrestore(&tty->ctrl_lock, flags); | ||
1958 | if (retval) | 1956 | if (retval) |
1959 | goto out; | 1957 | goto out; |
1960 | } else { | 1958 | } else { |