This gnttab_host_mapping_get_page_type() invocation sits in the "else"
path of a conditional controlled by "map->flags & GNTMAP_readonly".
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
if ( gnttab_release_host_mappings(d) &&
!is_iomem_page(act->mfn) )
{
- if ( gnttab_host_mapping_get_page_type((map->flags &
- GNTMAP_readonly),
- d, rd) )
+ if ( gnttab_host_mapping_get_page_type(false, d, rd) )
put_page_type(pg);
put_page(pg);
}