X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=arch%2Fx86%2Fxen%2Fmmu.c;h=276c67bba5aa6948e1aab8f0ca331cf63bf412fb;hb=20b4755e4fbb226eb42951bd40b53fcbce9ef944;hp=21ed8d7f75a5aa6fa85970d177979457d6b94d5c;hpb=6800e4c0ea3e96cf78953b8b5743381cb1bb9e37;p=karo-tx-linux.git diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 21ed8d7f75a5..276c67bba5aa 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -2627,7 +2627,8 @@ int xen_remap_domain_mfn_range(struct vm_area_struct *vma, prot = __pgprot(pgprot_val(prot) | _PAGE_IOMAP); - vma->vm_flags |= VM_IO | VM_RESERVED | VM_PFNMAP; + BUG_ON(!((vma->vm_flags & (VM_PFNMAP | VM_RESERVED | VM_IO)) == + (VM_PFNMAP | VM_RESERVED | VM_IO))); rmd.mfn = mfn; rmd.prot = prot;