]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - sitara-epos/sitara-epos-kernel.git/commitdiff
mfd: Fix a memory leak when unload mc13xxx-core module
authorAxel Lin <axel.lin@gmail.com>
Fri, 22 Oct 2010 10:29:21 +0000 (12:29 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:30:43 +0000 (00:30 +0200)
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/mc13xxx-core.c

index 1326e7f4263a7fe5d7fd25680ba214f6f45ccfeb..a2ac2ed6d64c64467e12ad6822f543cfe609a853 100644 (file)
@@ -795,6 +795,8 @@ static int __devexit mc13xxx_remove(struct spi_device *spi)
 
        mfd_remove_devices(&spi->dev);
 
+       kfree(mc13xxx);
+
        return 0;
 }