summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/pcmciamtd.c
diff options
context:
space:
mode:
authorSean Young <sean@mess.org>2006-05-17 12:47:48 +0200
committerDavid Woodhouse <dwmw2@infradead.org>2006-05-17 12:47:48 +0200
commit599fb3298b70d75c12dbdc4dd30f52c5cf04ea2f (patch)
treed968c97f084f3788dd7c781532523eca667e7842 /drivers/mtd/maps/pcmciamtd.c
parentcfi_cmdset_0001: factorize code to wait for flash status (diff)
downloadlinux-599fb3298b70d75c12dbdc4dd30f52c5cf04ea2f.tar.xz
linux-599fb3298b70d75c12dbdc4dd30f52c5cf04ea2f.zip
[PCMCIA MTD] Fix leak and crash on reboot
Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/maps/pcmciamtd.c')
-rw-r--r--drivers/mtd/maps/pcmciamtd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/maps/pcmciamtd.c b/drivers/mtd/maps/pcmciamtd.c
index d27f4129afd3..c861134cbc48 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);
}