* [PATCH] mfd: Fix a memory leak when unload mc13xxx-core module
@ 2010-10-22 0:42 Axel Lin
0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2010-10-22 0:42 UTC (permalink / raw)
To: linux-kernel; +Cc: Samuel Ortiz, Uwe Kleine-König
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
drivers/mfd/mc13xxx-core.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c
index 1326e7f..f397329 100644
--- a/drivers/mfd/mc13xxx-core.c
+++ b/drivers/mfd/mc13xxx-core.c
@@ -792,8 +792,8 @@ static int __devexit mc13xxx_remove(struct spi_device *spi)
struct mc13xxx *mc13xxx = dev_get_drvdata(&spi->dev);
free_irq(mc13xxx->spidev->irq, mc13xxx);
-
mfd_remove_devices(&spi->dev);
+ kfree(mc13xxx);
return 0;
}
--
1.7.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-10-22 0:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-22 0:42 [PATCH] mfd: Fix a memory leak when unload mc13xxx-core module Axel Lin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®