mtd: nand: fix scan_read_raw_oob
authorDmitry Maluka <D.Maluka@adbglobal.com>
Fri, 11 May 2012 17:51:51 +0000 (20:51 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Tue, 29 May 2012 08:14:58 +0000 (11:14 +0300)
commit34a5704d91d6f8376a4c0a0143a1dd3eb3ccb37e
tree33d697e06ccb7f4c3452dbb91e2477a706d841c3
parent52c2d9aad4923536c10d278e02da2e0254e46ee0
mtd: nand: fix scan_read_raw_oob

It seems there is a bug in scan_read_raw_oob() in nand_bbt.c which
should cause wrong functioning of NAND_BBT_SCANALLPAGES option.

Artem: the patch did not apply and I had to amend it a bit.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Cc: stable@kernel.org
drivers/mtd/nand/nand_bbt.c