Commit 599fb329 authored by Sean Young's avatar Sean Young Committed by David Woodhouse

[PCMCIA MTD] Fix leak and crash on reboot

Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent c172471b
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment