NAND: catch read errors when building BBT
authorJon Povey <jon.povey@racelogic.co.uk>
Mon, 17 May 2010 07:15:35 +0000 (16:15 +0900)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Tue, 18 May 2010 07:23:48 +0000 (09:23 +0200)
commitfafed75d9831c8038c5504fc94e941f0ee9770e5
tree838bcdf951c5b81d8277476b1146e2ae9c6b3c9c
parent3ecc191b361d913d3bdf156568454de57f093aee
NAND: catch read errors when building BBT

nand_build_bbt() was ignoring the return value from nand_read_page() and
blindly continuing.
It now passes the return value up to the caller if the read fails.

Signed-off-by: Jon Povey <jon.povey@racelogic.co.uk>
src/flash/nand/core.c