Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mfd: core: Fix memory leak of 'cell'
When creating a platform device from an MFD cell description, we allocate some memory and make a copy which is then stored inside the platform_device's structure. However, care is not currently taken to free the allocated memory when the platform device is torn down. This patch takes care of the leak. Signed-off-by: Lee Jones <lee.jones@linaro.org>
- Loading branch information