uniphier: fix memory over-run bug
Check the array index before the write.  This issue was found by a
static analysis tool.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent 1502c4e commit 3eba78d3c81700a548e123cd14c1f9258696a606
@Masahiro Yamada Masahiro Yamada authored on 14 Jun 2017
Showing 1 changed file
View
plat/socionext/uniphier/uniphier_nand.c