diff options
author | Adrian Hunter <[ext-adrian.hunter@nokia.com]> | 2007-01-22 03:01:01 -0500 |
---|---|---|
committer | Kyungmin Park <kyungmin.park@samsung.com> | 2007-01-22 07:27:56 -0500 |
commit | f00b0046d2eafac3e78e8def9374c7492820a9d2 (patch) | |
tree | ddcbbacccff7f64fdac41cdfe91a07b6aca20aca /drivers/mtd/onenand/onenand_bbt.c | |
parent | 75384b0d9c04dc2d48f45825f84a982eaf5c2f53 (diff) |
[MTD] OneNAND: Free the bad block table when the device is released
OneNAND does 2 memory allocations for bad block information.
Only one of them was being freed.
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/mtd/onenand/onenand_bbt.c')
-rw-r--r-- | drivers/mtd/onenand/onenand_bbt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/onenand/onenand_bbt.c b/drivers/mtd/onenand/onenand_bbt.c index 98f8fd1c6375..90db8f5b1f84 100644 --- a/drivers/mtd/onenand/onenand_bbt.c +++ b/drivers/mtd/onenand/onenand_bbt.c | |||
@@ -168,8 +168,8 @@ static int onenand_isbad_bbt(struct mtd_info *mtd, loff_t offs, int allowbbt) | |||
168 | * marked good / bad blocks and writes the bad block table(s) to | 168 | * marked good / bad blocks and writes the bad block table(s) to |
169 | * the selected place. | 169 | * the selected place. |
170 | * | 170 | * |
171 | * The bad block table memory is allocated here. It must be freed | 171 | * The bad block table memory is allocated here. It is freed |
172 | * by calling the onenand_free_bbt function. | 172 | * by the onenand_release function. |
173 | * | 173 | * |
174 | */ | 174 | */ |
175 | int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) | 175 | int onenand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd) |