From: Christoffer Dall Date: Fri, 9 Aug 2013 03:35:07 +0000 (-0700) Subject: ARM: KVM: Fix kvm_set_pte assignment X-Git-Tag: firefly_0821_release~3680^2~36^2~16^2^2~226 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=07557caabbdc70c2644e6f195fd07ca8be7d16b2;p=firefly-linux-kernel-4.4.55.git ARM: KVM: Fix kvm_set_pte assignment THe kvm_set_pte function was actually assigning the entire struct to the structure member, which should work because the structure only has that one member, but it is still not very nice. Acked-by: Marc Zyngier Signed-off-by: Christoffer Dall (cherry picked from commit 0963e5d0f22f9d197dbf206d8b5b2a150722cf5e) Signed-off-by: Christoffer Dall --- diff --git a/arch/arm/include/asm/kvm_mmu.h b/arch/arm/include/asm/kvm_mmu.h index 472ac7091003..9b28c41f4ba9 100644 --- a/arch/arm/include/asm/kvm_mmu.h +++ b/arch/arm/include/asm/kvm_mmu.h @@ -64,7 +64,7 @@ void kvm_clear_hyp_idmap(void); static inline void kvm_set_pte(pte_t *pte, pte_t new_pte) { - pte_val(*pte) = new_pte; + *pte = new_pte; /* * flush_pmd_entry just takes a void pointer and cleans the necessary * cache entries, so we can reuse the function for ptes.