From cef92fe63836dcc63db6ccfbea0a6d9255f491a9 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 22 Oct 2010 12:29:21 +0200 Subject: mfd: Fix a memory leak when unload mc13xxx-core module Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz --- drivers/mfd/mc13xxx-core.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'drivers/mfd/mc13xxx-core.c') 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; } -- cgit v1.2.3-70-g09d2