提交 ea85a0e4 编写于 作者: R Roel Kluin 提交者: Ralf Baechle

MIPS: Fix read buffer overflow

Signed-off-by: NRoel Kluin <roel.kluin@gmail.com>
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 dd34b5a8
......@@ -144,7 +144,7 @@ static char * __init lookup_psp_var_map(u8 num)
{
int i;
for (i = 0; i < sizeof(psp_var_map); i++)
for (i = 0; i < ARRAY_SIZE(psp_var_map); i++)
if (psp_var_map[i].num == num)
return psp_var_map[i].value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册