original_kernel/drivers/vfio
Daniel Jordan 4ab4fcfce5 vfio/type1: fix vaddr_get_pfns() return in vfio_pin_page_external()
vaddr_get_pfns() now returns the positive number of pfns successfully
gotten instead of zero.  vfio_pin_page_external() might return 1 to
vfio_iommu_type1_pin_pages(), which will treat it as an error, if
vaddr_get_pfns() is successful but vfio_pin_page_external() doesn't
reach vfio_lock_acct().

Fix it up in vfio_pin_page_external().  Found by inspection.

Fixes: be16c1fd99 ("vfio/type1: Change success value of vaddr_get_pfn()")
Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Message-Id: <20210308172452.38864-1-daniel.m.jordan@oracle.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2021-03-16 10:39:29 -06:00
..
fsl-mc
mdev
pci vfio/pci: remove CONFIG_VFIO_PCI_ZDEV from Kconfig 2021-02-19 10:29:56 -07:00
platform ARM: amba: Allow some ARM_AMBA users to compile with COMPILE_TEST 2021-03-16 10:39:28 -06:00
Kconfig vfio: Depend on MMU 2021-03-16 10:39:28 -06:00
Makefile
vfio.c vfio: iommu driver notify callback 2021-02-01 13:20:07 -07:00
vfio_iommu_spapr_tce.c
vfio_iommu_type1.c vfio/type1: fix vaddr_get_pfns() return in vfio_pin_page_external() 2021-03-16 10:39:29 -06:00
vfio_spapr_eeh.c
virqfd.c