Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

[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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
	}