From: Russell King Date: Mon, 5 Mar 2012 23:29:51 +0000 (+0000) Subject: ARM: ecard: ensure fake vma vm_flags is setup X-Git-Tag: v3.3-rc7~18^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81caaf2503be8fbb738ea4f124063dcc24958397;p=platform%2Fkernel%2Flinux-stable.git ARM: ecard: ensure fake vma vm_flags is setup Our TLB ops want to check the vma vm_flags to find out whether the mapping is executable. However, we leave this uninitialized in ecard.c. Initialize it with an appropriate value. Reported-by: Al Viro Signed-off-by: Russell King --- diff --git a/arch/arm/kernel/ecard.c b/arch/arm/kernel/ecard.c index 4dd0eda..1651d49 100644 --- a/arch/arm/kernel/ecard.c +++ b/arch/arm/kernel/ecard.c @@ -242,6 +242,7 @@ static void ecard_init_pgtables(struct mm_struct *mm) memcpy(dst_pgd, src_pgd, sizeof(pgd_t) * (EASI_SIZE / PGDIR_SIZE)); + vma.vm_flags = VM_EXEC; vma.vm_mm = mm; flush_tlb_range(&vma, IO_START, IO_START + IO_SIZE);