Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81caaf25 authored by Russell King's avatar Russell King
Browse files

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: default avatarAl Viro <viro@ftp.linux.org.uk>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 43a6955f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);