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:37:35 +0000 (15:37 +0100)
commit2585fe4893a0c4c18f0727a8185c5281c8a7c59e
treeb5b759edae6683b56b93bce2ffb79bcb3b5cf3c8
parent9ab07796de822dced31e4522ee1b4691b14c3cf9
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