linux/drivers/vfio
Alex Williamson f5bfdbf252 vfio/type1: Fix missed frees and zero sized removes
With hugepage support we can only properly aligned and sized ranges.
We only guarantee that we can unmap the same ranges mapped and not
arbitrary sub-ranges.  This means we might not free anything or might
free more than requested.  The vfio unmap interface started storing
the unmapped size to return to userspace to handle this.  This patch
fixes a few places where we don't properly handle those cases, moves
a memory allocation to a place where failure is an option and checks
our loops to make sure we don't get into an infinite loop trying to
remove an overlap.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2013-06-25 16:01:44 -06:00
..
pci vfio updates for v3.10 2013-05-02 14:02:32 -07:00
Kconfig vfio: Add PCI device driver 2012-07-31 08:16:24 -06:00
Makefile
vfio_iommu_type1.c vfio/type1: Fix missed frees and zero sized removes 2013-06-25 16:01:44 -06:00
vfio.c vfio: fix crash on rmmod 2013-06-05 08:54:16 -06:00