diff options
Diffstat (limited to 'drivers/mtd/nand')
-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 04e54318bc6a..8e78d7b96a56 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c | |||
@@ -2676,9 +2676,8 @@ void nand_release (struct mtd_info *mtd) | |||
2676 | /* Deregister the device */ | 2676 | /* Deregister the device */ |
2677 | del_mtd_device (mtd); | 2677 | del_mtd_device (mtd); |
2678 | 2678 | ||
2679 | /* Free bad block table memory, if allocated */ | 2679 | /* Free bad block table memory */ |
2680 | if (this->bbt) | 2680 | kfree (this->bbt); |
2681 | kfree (this->bbt); | ||
2682 | /* Buffer allocated by nand_scan ? */ | 2681 | /* Buffer allocated by nand_scan ? */ |
2683 | if (this->options & NAND_OOBBUF_ALLOC) | 2682 | if (this->options & NAND_OOBBUF_ALLOC) |
2684 | kfree (this->oob_buf); | 2683 | kfree (this->oob_buf); |