Commit 90a2541d authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] Fix 2.5 signal handling in jffs/jffs2

Ingo chamged it again 8)
parent 2f6d6ffb
......@@ -3380,9 +3380,9 @@ jffs_garbage_collect_thread(void *ptr)
spin_lock_irq(&current->sig->siglock);
if (current->sig->shared_pending.head)
signr = dequeue_signal(&current->sig->shared_pending, &current->blocked, &info);
signr = dequeue_signal(&current->sig->shared_pending, &info);
if (!signr)
signr = dequeue_signal(&current->pending, &current->blocked, &info);
signr = dequeue_signal(&current->pending, &info);
spin_unlock_irq(&current->sig->siglock);
switch(signr) {
......
......@@ -116,9 +116,9 @@ static int jffs2_garbage_collect_thread(void *_c)
spin_lock_irq(&current->sig->siglock);
if (current->sig->shared_pending.head)
signr = dequeue_signal(&current->sig->shared_pending, &current->blocked, &info);
signr = dequeue_signal(&current->sig->shared_pending, &info);
if (!signr)
signr = dequeue_signal(&current->pending, &current->blocked, &info);
signr = dequeue_signal(&current->pending, &info);
spin_unlock_irq(&current->sig->siglock);
switch(signr) {
......
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