History

powerpc/64s: Prevent fallthrough to hash TLB flush when using radix

In the fix reconnecting hash__tlb_flush() to tlb_flush() the void return on radix__tlb_flush() was not restored and subsequently falls through to the restored hash__tlb_flush(). Guard hash__tlb_flush() under an else to prevent this.

Benjamin Gray committed 3 years ago

Commit 4302abc1 parent 2ea31e21 file · +2 −2Browse files

Unified · Split

arch/powerpc/include/asm/book3s/64/tlbflush.h+2−2
@@ -97,8 +97,8 @@ static inline void tlb_flush(struct mmu_gather *tlb) · 96 unmodified lines
9797 {
9898 if (radix_enabled())
9999 radix__tlb_flush(tlb);
100−
101− return hash__tlb_flush(tlb);
100+ else
101+ hash__tlb_flush(tlb);
102102 }
103103
104104 #ifdef CONFIG_SMP