OSDN Git Service

powerpc/book3s/32: fix number of bats in p/v_block_mapped()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 16 Nov 2018 17:27:42 +0000 (17:27 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:20:38 +0000 (09:20 +0100)
commitd003b67d2b97868a7e695663f7835f4d96e73728
tree9ec77b6ec13306de085f2c9b815337c42a8f9793
parent09a0f8d4423a0069cbdc45e1dfca0e739389cc53
powerpc/book3s/32: fix number of bats in p/v_block_mapped()

[ Upstream commit e93ba1b7eb5b188c749052df7af1c90821c5f320 ]

This patch fixes the loop in p_block_mapped() and v_block_mapped()
to scan the entire bat_addrs[] array.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/mm/ppc_mmu_32.c