提交 599fb329 编写于 作者: S Sean Young 提交者: David Woodhouse

[PCMCIA MTD] Fix leak and crash on reboot

Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册