summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2010-10-22 12:29:21 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-10-29 00:30:43 +0200
commitcef92fe63836dcc63db6ccfbea0a6d9255f491a9 (patch)
tree48f84d6cc0a40cc1558849ac1ab5230f656ae7d3
parent7484552eb24e3c62ef55a4ff0133d8450adea206 (diff)
downloadlinux-3.10-cef92fe63836dcc63db6ccfbea0a6d9255f491a9.tar.gz
linux-3.10-cef92fe63836dcc63db6ccfbea0a6d9255f491a9.tar.bz2
linux-3.10-cef92fe63836dcc63db6ccfbea0a6d9255f491a9.zip
mfd: Fix a memory leak when unload mc13xxx-core module
Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/mc13xxx-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c
index 1326e7f4263..a2ac2ed6d64 100644
--- a/drivers/mfd/mc13xxx-core.c
+++ b/drivers/mfd/mc13xxx-core.c
@@ -795,6 +795,8 @@ static int __devexit mc13xxx_remove(struct spi_device *spi)
mfd_remove_devices(&spi->dev);
+ kfree(mc13xxx);
+
return 0;
}