mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
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
This commit is contained in:
parent
46f1619500
commit
efcb529694
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@
|
||||||
|
|
||||||
/* O32 stack has to be 8-byte aligned. */
|
/* O32 stack has to be 8-byte aligned. */
|
||||||
static u64 o32_stk[4096];
|
static u64 o32_stk[4096];
|
||||||
#define O32_STK &o32_stk[sizeof(o32_stk)]
|
#define O32_STK (&o32_stk[ARRAY_SIZE(o32_stk)])
|
||||||
|
|
||||||
#define __PROM_O32(fun, arg) fun arg __asm__(#fun); \
|
#define __PROM_O32(fun, arg) fun arg __asm__(#fun); \
|
||||||
__asm__(#fun " = call_o32")
|
__asm__(#fun " = call_o32")
|
||||||
|
|
Loading…
Reference in a new issue