page-read: fix open_page_read usage
page-read: fix open_page_read usage

1. Fix uninitialized use of pr in cr_dedup_one_pagemap and get_page:
https://github.com/xemul/criu/issues/178
2. In ud_open, close pr in case of error returned from find_vmas->
collect_uffd_pages as we free lpi with lpi->pr open; so need check in
lpi_fini if uffd is >0 before close

v2:rebase to new criu-dev
Signed-off-by: Pavel Tikhomirov <3e8c75167f9f00ca74287a4609f1507a2696e07e@virtuozzo.com>
Acked-by: Mike Rapoport <6432ce95675be77d61ce23efe20f472ee21e9f31@linux.vnet.ibm.com>
Signed-off-by: Pavel Emelyanov <c9a32589e048e044184536f7ac71ef92fe82df3e@virtuozzo.com>

eabatalov/criu,eabatalov/criu,eabatalov/criu,eabatalov/criu,eabatalov/criu,eabatalov/criu