vfio: Fix PCI mmap after b3b9c293
authorAlex Williamson <alex.williamson@redhat.com>
Wed, 10 Oct 2012 15:10:31 +0000 (09:10 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 10 Oct 2012 15:10:31 +0000 (09:10 -0600)
commit34002f54d2bd8e8ac04f0da0847f71a8a06a5d38
tree97f205940afdc9d6e684f213aad522cb5a1f0916
parent2474542f64432398f503373f53bdf620491bcfa8
vfio: Fix PCI mmap after b3b9c293

Our mmap path mistakely relied on vma->vm_pgoff to get set in
remap_pfn_range.  After b3b9c293, that path only applies to
copy-on-write mappings.  Set it in our own code.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci.c