NAND ECC: bounds check indices from NAND controller

If there are ECC errors, the NAND controller tells us which words to
fix. Let's play it safe and bounds check the indices we get from the
NAND controller. Previously, we modified unrelated memory locations due
to bad data from the NAND controller.

Change-Id: I780ffd03ca886320a9eb98301a416a040bd2de33
1 file changed