Commit 1a92e789 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

lazy-pages: send_uffd: make sure mutex is unlocked on error paths

travis-ci: success for lazy-pages: misc fixes (rev4)
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent ec71c1da
......@@ -174,10 +174,9 @@ static int send_uffd(int sendfd, int pid)
goto out;
}
mutex_unlock(lazy_sock_mutex);
ret = 0;
out:
mutex_unlock(lazy_sock_mutex);
close(fd);
return ret;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment