Skip to content

Commit

Permalink
[PCMCIA MTD] Fix leak and crash on reboot
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
  • Loading branch information
Sean Young authored and David Woodhouse committed May 17, 2006
1 parent c172471 commit 599fb32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/maps/pcmciamtd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 599fb32

Please sign in to comment.