mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-21 01:06:58 +00:00
sk-unix: fix mutex_ghost deadlock on connect failure in post_open_standalone
Signed-off-by: WHOIM1205 <rathourprateek8@gmail.com>
This commit is contained in:
parent
fc2cddbdb9
commit
b5d531eb4f
1 changed files with 1 additions and 0 deletions
|
|
@ -1404,6 +1404,7 @@ static int post_open_standalone(struct file_desc *d, int fd)
|
|||
mutex_lock(mutex_ghost);
|
||||
if (connect(fd, (struct sockaddr *)&addr, sizeof(addr.sun_family) + len) < 0) {
|
||||
pr_perror("Can't connect %d socket", ui->ue->ino);
|
||||
mutex_unlock(mutex_ghost);
|
||||
goto err_revert_and_exit;
|
||||
}
|
||||
mutex_unlock(mutex_ghost);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue