Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages
Subsystems (2)
PATCH 5/13 Blackfin NFC Driver: fix bug - do not clobber the status from the first 256 bytes if operating on 512 pages
From: Mike Frysinger <[email protected]>
Singed-off-by Mike Frysinger <[email protected]>
Signed-off-by Bryan Wu <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
drivers/mtd/nand/bf5xx_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/bf5xx_nand.c renamed from drivers/mtd/nand/bf5xx_nand.c~blackfin-nfc-driver-fix-bug-do-not-clobber-the-status-from-the-first-256-bytes-if-operating-on-512-pages +1 -1
@@ -273,7 +273,7 @@ static int bf5xx_nand_correct_data(struc dat +=256 ; read_ecc +=8 ; calc_ecc +=8 ; - ret =bf5xx_nand_correct_data_256 (mtd, dat, read_ecc, calc_ecc); + ret |=bf5xx_nand_correct_data_256 (mtd, dat, read_ecc, calc_ecc); }return ret;
_