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
97{97{
98 if (radix_enabled())98 if (radix_enabled())
99 radix__tlb_flush(tlb);99 radix__tlb_flush(tlb);
100 100 else
101 return hash__tlb_flush(tlb);101 hash__tlb_flush(tlb);
102}102}
103 103
104#ifdef CONFIG_SMP104#ifdef CONFIG_SMP