From: Sean Young Date: Wed, 17 May 2006 10:47:48 +0000 (+0100) Subject: [PCMCIA MTD] Fix leak and crash on reboot X-Git-Tag: v2.6.18-rc1~1105^2~90 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=599fb3298b70d75c12dbdc4dd30f52c5cf04ea2f;p=linux-2.6-omap-h63xx.git [PCMCIA MTD] Fix leak and crash on reboot Signed-off-by: Sean Young Signed-off-by: David Woodhouse --- diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c index d27f4129afd..c861134cbc4 100644 --- a/drivers/mtd/maps/pcmciamtd.c +++ b/drivers/mtd/maps/pcmciamtd.c @@ -713,6 +713,7 @@ static void pcmciamtd_detach(struct pcmcia_device *link) if(dev->mtd_info) { del_mtd_device(dev->mtd_info); + map_destroy(dev->mtd_info); info("mtd%d: Removed", dev->mtd_info->index); }