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 14:26:53 +0000 (15:26 +0100)
commit23f53171bec2190d3bda773b93281531235e83a6
tree4923ee958a3c17dae2218e76c2d692c99497b09a
parent14c64742749eb79e5a3465223b485ce6a4523143
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