diff options
Diffstat (limited to 'drivers/mtd/nand/nand_base.c')
-rw-r--r-- | drivers/mtd/nand/nand_base.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 4673ba79309b..5d222460b42a 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -2711,9 +2711,8 @@ void nand_release (struct mtd_info *mtd) | |||
2711 | /* Deregister the device */ | 2711 | /* Deregister the device */ |
2712 | del_mtd_device (mtd); | 2712 | del_mtd_device (mtd); |
2713 | 2713 | ||
2714 | /* Free bad block table memory, if allocated */ | 2714 | /* Free bad block table memory */ |
2715 | if (this->bbt) | 2715 | kfree (this->bbt); |
2716 | kfree (this->bbt); | ||
2717 | /* Buffer allocated by nand_scan ? */ | 2716 | /* Buffer allocated by nand_scan ? */ |
2718 | if (this->options & NAND_OOBBUF_ALLOC) | 2717 | if (this->options & NAND_OOBBUF_ALLOC) |
2719 | kfree (this->oob_buf); | 2718 | kfree (this->oob_buf); |