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)
committerPaul Burton <paul.burton@mips.com>
Wed, 9 Oct 2019 19:47:28 +0000 (12:47 -0700)
commitefcb529694c3b707dc0471b312944337ba16e4dd
tree72f72386b650978c472118d7b5df118c2f7786d1
parent46f1619500d022501a4f0389f9f4c349ab46bb86
MIPS: fw: sni: Fix out of bounds init of o32 stack

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
arch/mips/fw/sni/sniprom.c