OSDN Git Service

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 11:09:15 +0000 (12:09 +0100)
commit7a5c21af789d6871de3f05185e221fb7eea6804b
tree1bdf98afbc1e11c4427f8cf6760bfa452ad22eac
parent23d94f1fec0aec5e547ae0c96c5da28d12fa652c
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