aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-03-12 18:52:52 -0400
committerDavid S. Miller <davem@davemloft.net>2007-03-12 18:52:52 -0400
commit6cee77dbf29e3c4c2cf2ce16621759accc76891e (patch)
tree6ebfad8b6c14e70627365c61c1ff2bc6634dc70e /net
parent38c8947c1b46e5985df36435a6f21ef6a7e8a4b8 (diff)
[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>
Diffstat (limited to 'net')
-rw-r--r--net/rose/af_rose.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/rose/af_rose.c b/net/rose/af_rose.c
index 8c34f1ca6c8c..596b302d0e47 100644
--- a/net/rose/af_rose.c
+++ b/net/rose/af_rose.c
@@ -877,6 +877,8 @@ static int rose_accept(struct socket *sock, struct socket *newsock, int flags)
877 lock_sock(sk); 877 lock_sock(sk);
878 continue; 878 continue;
879 } 879 }
880 current->state = TASK_RUNNING;
881 remove_wait_queue(sk->sk_sleep, &wait);
880 return -ERESTARTSYS; 882 return -ERESTARTSYS;
881 } 883 }
882 current->state = TASK_RUNNING; 884 current->state = TASK_RUNNING;