mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 04:11:49 +00:00
[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:
parent
38c8947c1b
commit
6cee77dbf2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user