2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

tcp: don't forget to wake up the port->users futex

Reported-by: Robert Reinecke <reinecke@rbg.informatik.tu-darmstadt.de>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Andrey Vagin
2014-07-07 15:31:00 +04:00
committed by Pavel Emelyanov
parent 3435ec9ee5
commit 19df5ec472

View File

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