Commit 0f60684b authored by Pavel Tikhomirov's avatar Pavel Tikhomirov Committed by Andrei Vagin

make lpi_fini handle NULL to allow it after failed lpi_init in ud_open

https://github.com/xemul/criu/issues/187Signed-off-by: 's avatarPavel Tikhomirov <ptikhomirov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 5ad71a89
......@@ -76,6 +76,8 @@ static struct lazy_pages_info *lpi_init(void)
static void lpi_fini(struct lazy_pages_info *lpi)
{
if (!lpi)
return;
if (lpi->uffd > 0)
close(lpi->uffd);
if (lpi->pr.close)
......
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