Browse Source

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>
Axel Lin 14 years ago
parent
commit
cef92fe638
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/mfd/mc13xxx-core.c

+ 2 - 0
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;
 }