From d3845a62e6c8943d01e0578551cc10ecd8a45c89 Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 16 Feb 2003 04:46:44 -0800 Subject: 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". --- fs/proc/array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs/proc/array.c') 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); -- cgit v1.2.3