Commit d3845a62 authored by Linus Torvalds's avatar Linus Torvalds

It's usually considered stupid to lock the same spinlock twice in

close succession. However, for this once we'll just call it "inspired".

But let's decide pair the lock with an unlock anyway, even if it is
boring and "square".
parent c290649e
......@@ -322,7 +322,7 @@ int proc_pid_stat(struct task_struct *task, char * buffer)
if (task->sighand) {
spin_lock_irq(&task->sighand->siglock);
collect_sigign_sigcatch(task, &sigign, &sigcatch);
spin_lock_irq(&task->sighand->siglock);
spin_unlock_irq(&task->sighand->siglock);
}
read_unlock(&tasklist_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment