projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7484552
)
mfd: Fix a memory leak when unload mc13xxx-core module
author
Axel Lin
<axel.lin@gmail.com>
Fri, 22 Oct 2010 10:29:21 +0000
(12:29 +0200)
committer
Samuel 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
patch
|
blob
|
history
diff --git
a/drivers/mfd/mc13xxx-core.c
b/drivers/mfd/mc13xxx-core.c
index
1326e7f
..
a2ac2ed
100644
(file)
--- 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;
}