]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: Fix PCI mmap after 869566b3
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)
commite9fa9bd9e6cf842d5e9d252d85cb1cfd227b0872
tree97f205940afdc9d6e684f213aad522cb5a1f0916
parent1a6105e71a9a411886b20894d513ae3e11692eef
vfio: Fix PCI mmap after 869566b3

Our mmap path mistakely relied on vma->vm_pgoff to get set in
remap_pfn_range.  After 869566b3, 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