Commit 547b1e81afe3119f7daf702cc03b158495535a25
1 parent
9e2d8656f5
Exists in
master
and in
20 other branches
Fix staging driver use of VM_RESERVED
The VM_RESERVED flag was killed off in commit 314e51b9851b ("mm: kill vma flag VM_RESERVED and mm->reserved_vm counter"), and replaced by the proper semantic flags (eg "don't core-dump" etc). But there was a new use of VM_RESERVED that got missed by the merge. Fix the remaining use of VM_RESERVED in the vfio_pci driver, replacing the VM_RESERVED flag with VM_DONTEXPAND | VM_DONTDUMP. Signed-off-by: Linus Torvalds <torvalds@linux-foundation,org>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/vfio/pci/vfio_pci.c
... | ... | @@ -461,7 +461,7 @@ |
461 | 461 | } |
462 | 462 | |
463 | 463 | vma->vm_private_data = vdev; |
464 | - vma->vm_flags |= (VM_IO | VM_RESERVED); | |
464 | + vma->vm_flags |= VM_IO | VM_DONTEXPAND | VM_DONTDUMP; | |
465 | 465 | vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot); |
466 | 466 | |
467 | 467 | phys = (pci_resource_start(pdev, index) >> PAGE_SHIFT) + pgoff; |