[MTD] OneNAND: Free the bad block table when the device is released
authorAdrian Hunter <[ext-adrian.hunter@nokia.com]>
Mon, 22 Jan 2007 08:01:01 +0000 (17:01 +0900)
committerKyungmin Park <kyungmin.park@samsung.com>
Mon, 22 Jan 2007 12:27:56 +0000 (21:27 +0900)
commitf00b0046d2eafac3e78e8def9374c7492820a9d2
treeddcbbacccff7f64fdac41cdfe91a07b6aca20aca
parent75384b0d9c04dc2d48f45825f84a982eaf5c2f53
[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>
drivers/mtd/onenand/onenand_base.c
drivers/mtd/onenand/onenand_bbt.c