diff options
author | Wolfgang Denk <wd@denx.de> | 2009-12-07 22:47:17 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-12-07 22:47:17 +0100 |
commit | 206c00f26f56af02686cb69bfe5c75e979063171 (patch) | |
tree | 4e637df34f87762a2e70649e88f52ac973df1f00 /drivers/mtd/nand | |
parent | 39ff7d5f4cc547a2034a8bfc2a5b5f4b62fd5c20 (diff) | |
parent | f8450829f921cf10667af98a8d08edfa3d998f04 (diff) |
Merge branch 'master' into next
Conflicts:
lib_generic/zlib.c
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/nand_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_util.c b/drivers/mtd/nand/nand_util.c index bec927706f..7085d42cc1 100644 --- a/drivers/mtd/nand/nand_util.c +++ b/drivers/mtd/nand/nand_util.c @@ -452,7 +452,7 @@ static size_t get_len_incl_bad (nand_info_t *nand, loff_t offset, len_incl_bad += block_len; offset += block_len; - if ((offset + len_incl_bad) >= nand->size) + if (offset >= nand->size) break; } |