]> err.no Git - linux-2.6/commitdiff
[ROSE]: Remove ourselves from waitqueue when receiving a signal
authorRalf Baechle <ralf@linux-mips.org>
Mon, 12 Mar 2007 22:52:52 +0000 (15:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2007 22:52:52 +0000 (15:52 -0700)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rose/af_rose.c

index 8c34f1ca6c8c8eb8486d084bbd1e17eb6eca224c..596b302d0e474c7193bfc8f0134b1f73bda910da 100644 (file)
@@ -877,6 +877,8 @@ static int rose_accept(struct socket *sock, struct socket *newsock, int flags)
                        lock_sock(sk);
                        continue;
                }
+               current->state = TASK_RUNNING;
+               remove_wait_queue(sk->sk_sleep, &wait);
                return -ERESTARTSYS;
        }
        current->state = TASK_RUNNING;