]> err.no Git - linux-2.6/commitdiff
[MTD] [NAND] Blackfin NFC Driver: fix bug - do not clobber the status from the first...
authorMike Frysinger <vapier.adi@gmail.com>
Wed, 30 Jul 2008 19:34:59 +0000 (12:34 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 1 Aug 2008 14:40:21 +0000 (15:40 +0100)
Singed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/bf5xx_nand.c

index e87a57297328c4a72cde3d01c605e94d0299eee3..3254348f85813d551d88a8c9fb859fd469e0bf7f 100644 (file)
@@ -273,7 +273,7 @@ static int bf5xx_nand_correct_data(struct mtd_info *mtd, u_char *dat,
                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;