ARM: KVM: sanitize freeing of HYP page tables
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 5 Mar 2013 02:43:17 +0000 (02:43 +0000)
committerChristoffer Dall <cdall@cs.columbia.edu>
Wed, 6 Mar 2013 23:59:20 +0000 (15:59 -0800)
commit000d399625b4b302935508f2fc9ce93ff1bd1ba4
treef1df1043a1250219f1215bd4c9f7ae03d7fef576
parent6190920a35068a621570cca7f07f3c4477615176
ARM: KVM: sanitize freeing of HYP page tables

Instead of trying to free everything from PAGE_OFFSET to the
top of memory, use the virt_addr_valid macro to check the
upper limit.

Also do the same for the vmalloc region where the IO mappings
are allocated.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
arch/arm/kvm/mmu.c