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(+) diff --git a/drivers/mfd/mc13xxx-core.c b/drivers/mfd/mc13xxx-core.c index 1326e7f4263a..a2ac2ed6d64c 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-59-g8ed1b