Loading
mtd: maps: pcmciamtd: fix potential memory leak in pcmciamtd_detach()
The memory allocated for struct pcmciamtd_dev in pcmciamtd_probe() is not freed in the corresponding remove function pcmciamtd_detach(). Fix that by freeing it in the remove function. Fixes: 1da177e4 ("Linux-2.6.12-rc2") Signed-off-by:Abdun Nihaal <nihaal@cse.iitm.ac.in> Signed-off-by:
Miquel Raynal <miquel.raynal@bootlin.com>