]> git.baikalelectronics.ru Git - kernel.git/commit
Fix index regression in nand_read_subpage
authorRon <ron@debian.org>
Sat, 15 Mar 2014 17:31:07 +0000 (04:01 +1030)
committerBrian Norris <computersforpeace@gmail.com>
Sat, 5 Apr 2014 06:13:17 +0000 (23:13 -0700)
commit95637967894edc455d46bc28382e6a51184048f2
treeb0a0cb99577a55a283d8efe27d57325dfe941162
parent63a0fb759baaf2152e3cccf1cd2c09eb629d2d80
Fix index regression in nand_read_subpage

Commit 69aa08a5ca22e50bcd02488911295cdf58fe46da added an index variable
as part of fixing checkpatch warnings, presumably as a tool to make some
long lines shorter, however it only set that index in the case of there
being no gaps in eccpos for the fragment being read.  Which means the
later step of filling ecccode from oob_poi will use the wrong indexing
into eccpos in that case.

This patch restores the behaviour that existed prior to that change.

Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c