Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242759
b: refs/heads/master
c: 7912a5e
h: refs/heads/master
i:
  242757: f46ee6f
  242755: 3514e01
  242751: 6eec132
v: v3
  • Loading branch information
Stanislav Fomichev authored and David Woodhouse committed Mar 11, 2011
1 parent 5182e7f commit 53fec9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7b7e905ec2ec511e06279181ca95a892db21e292
refs/heads/master: 7912a5e7f37512d8d105785046137435b70347ce
8 changes: 6 additions & 2 deletions trunk/drivers/mtd/nand/nand_bbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1101,12 +1101,16 @@ static void mark_bbt_region(struct mtd_info *mtd, struct nand_bbt_descr *td)
static void verify_bbt_descr(struct mtd_info *mtd, struct nand_bbt_descr *bd)
{
struct nand_chip *this = mtd->priv;
u32 pattern_len = bd->len;
u32 bits = bd->options & NAND_BBT_NRBITS_MSK;
u32 pattern_len;
u32 bits;
u32 table_size;

if (!bd)
return;

pattern_len = bd->len;
bits = bd->options & NAND_BBT_NRBITS_MSK;

BUG_ON((this->options & NAND_USE_FLASH_BBT_NO_OOB) &&
!(this->options & NAND_USE_FLASH_BBT));
BUG_ON(!bits);
Expand Down

0 comments on commit 53fec9a

Please sign in to comment.