Message ID | CANM98qJnEe6jJpJhvR6MrS_Wc9o4XSTTbnuCg6LO56M2oobAPw@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index a153fd4..f2b6287 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c @@ -305,7 +305,9 @@ EXPORT_SYMBOL(get_mem_type); pteval_t get_mem_type_prot_pte(unsigned int type) { - return get_mem_type(type)->prot_pte; + if (get_mem_type(type)) + return get_mem_type(type)->prot_pte; + return 0; } EXPORT_SYMBOL(get_mem_type_prot_pte); -- To unsubscribe from this list: send the line "unsubscribe kvm" in