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:
WHOIM1205 2026-02-10 15:29:52 -08:00 committed by Andrei Vagin
parent fc2cddbdb9
commit b5d531eb4f

View file

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