[PCMCIA MTD] Fix leak and crash on reboot

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed May 17 06:59:02 EDT 2006


Commit:     599fb3298b70d75c12dbdc4dd30f52c5cf04ea2f
Parent:     c172471b78255a5cf6d05383d9ebbf0c6683167a
Author:     Sean Young <sean at mess.org>
AuthorDate: Wed May 17 11:47:48 2006 +0100
Commit:     David Woodhouse <dwmw2 at infradead.org>
CommitDate: Wed May 17 11:47:48 2006 +0100

    [PCMCIA MTD] Fix leak and crash on reboot
    
    Signed-off-by: Sean Young <sean at mess.org>
    Signed-off-by: David Woodhouse <dwmw2 at infradead.org>

 drivers/mtd/maps/pcmciamtd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c
index d27f412..c861134 100644
--- a/drivers/mtd/maps/pcmciamtd.c
+++ b/drivers/mtd/maps/pcmciamtd.c
@@ -713,6 +713,7 @@ static void pcmciamtd_detach(struct pcmc
 
 	if(dev->mtd_info) {
 		del_mtd_device(dev->mtd_info);
+		map_destroy(dev->mtd_info);
 		info("mtd%d: Removed", dev->mtd_info->index);
 	}
 



More information about the linux-mtd-cvs mailing list