[CRIU] [PATCH] tcp: don't forget to wake up the port->users futex
Andrey Vagin
avagin at openvz.org
Mon Jul 7 04:31:08 PDT 2014
Reported-by: Robert Reinecke <reinecke at rbg.informatik.tu-darmstadt.de>
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
sk-inet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sk-inet.c b/sk-inet.c
index 02c653f..a94cd41 100644
--- a/sk-inet.c
+++ b/sk-inet.c
@@ -547,7 +547,7 @@ static int open_inet_sk(struct file_desc *d)
inet_connect(sk, ii))
goto err;
done:
- futex_dec(&ii->port->users);
+ futex_dec_and_wake(&ii->port->users);
if (rst_file_params(sk, ie->fown, ie->flags))
goto err;
--
1.8.5.3
More information about the CRIU
mailing list