Commit 38cb9b86 authored by Daniel Jordan's avatar Daniel Jordan Committed by Greg Kroah-Hartman
Browse files

vfio/type1: Change success value of vaddr_get_pfn()



[ Upstream commit be16c1fd ]

vaddr_get_pfn() simply returns 0 on success.  Have it report the number
of pfns successfully gotten instead, whether from page pinning or
follow_fault_pfn(), which will be used later when batching pinning.

Change the last check in vfio_pin_pages_remote() for consistency with
the other two.

Signed-off-by: default avatarDaniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Stable-dep-of: 873aefb3 ("vfio/type1: Unpin zero pages")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c4adbfa9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment