uniphier: fix memory over-run bug
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 15 Jun 2017 00:32:12 +0000 (09:32 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Thu, 15 Jun 2017 00:39:37 +0000 (09:39 +0900)
commit3eba78d3c81700a548e123cd14c1f9258696a606
tree706f3fa4cfb66d59410d48daa7fd993d38efd5f2
parent1502c4e157180613a736ff13c553e29cffd5168d
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>
plat/socionext/uniphier/uniphier_nand.c