From: Andrew Morton Date: Thu, 13 Sep 2012 00:58:30 +0000 (+1000) Subject: mm-kill-vma-flag-vm_reserved-and-mm-reserved_vm-counter-fix X-Git-Tag: next-20120919~1^2~224 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=66e0a7ba80760c16e2adfcd182ffac7353e00666;p=karo-tx-linux.git mm-kill-vma-flag-vm_reserved-and-mm-reserved_vm-counter-fix Cc: Konstantin Khlebnikov Signed-off-by: Andrew Morton --- diff --git a/drivers/vfio/pci/vfio_pci.c b/drivers/vfio/pci/vfio_pci.c index 6968b7232232..384091a0bec0 100644 --- a/drivers/vfio/pci/vfio_pci.c +++ b/drivers/vfio/pci/vfio_pci.c @@ -461,7 +461,7 @@ static int vfio_pci_mmap(void *device_data, struct vm_area_struct *vma) } vma->vm_private_data = vdev; - vma->vm_flags |= (VM_IO | VM_RESERVED); + vma->vm_flags |= VM_IO; vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); phys = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff;