MIPS: fw: sni: Fix out of bounds init of o32 stack
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Wed, 9 Oct 2019 15:10:56 +0000 (17:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Nov 2019 12:06:04 +0000 (13:06 +0100)
commit5865397db6c3a9eb5c790e5c01ace9b29f3955d1
treebd26e48b5dc299226e4fca5ad7bb1a4af9a8a977
parent317b6f68abb1f7cfe41b3419b13ad6f8a4cd8492
MIPS: fw: sni: Fix out of bounds init of o32 stack

[ Upstream commit efcb529694c3b707dc0471b312944337ba16e4dd ]

Use ARRAY_SIZE to caluculate the top of the o32 stack.

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/mips/fw/sni/sniprom.c