[ROSE]: Remove ourselves from waitqueue when receiving a signal

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ralf Baechle 2007-03-12 15:52:52 -07:00 committed by David S. Miller
parent 38c8947c1b
commit 6cee77dbf2

View 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;