mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 14:43:16 +00:00
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>
This commit is contained in:
parent
7484552eb2
commit
cef92fe638
@ -795,6 +795,8 @@ static int __devexit mc13xxx_remove(struct spi_device *spi)
|
|||||||
|
|
||||||
mfd_remove_devices(&spi->dev);
|
mfd_remove_devices(&spi->dev);
|
||||||
|
|
||||||
|
kfree(mc13xxx);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user