diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-16 04:46:44 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-02-16 04:46:44 -0800 |
| commit | d3845a62e6c8943d01e0578551cc10ecd8a45c89 (patch) | |
| tree | ad4555a74c470e2cafecf2ee51c3b04f318ab409 /fs/proc/array.c | |
| parent | c290649e47664daaf7ef0b9a50545d7bb121535d (diff) | |
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".
Diffstat (limited to 'fs/proc/array.c')
| -rw-r--r-- | fs/proc/array.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c index e15ffaf61f48..37fb278f96d7 100644 --- a/fs/proc/array.c +++ b/fs/proc/array.c @@ -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); |
