mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
9e14de1077
When the devfreq_add_device fails to register deivce, the memory
leak of devfreq instance happen. So, this patch fix the memory
leak issue. Before freeing the devfreq instance checks whether
devfreq instance is NULL or not because the device_unregister()
frees the devfreq instance when jumping to the 'err_init'.
It is to prevent the duplicate the kfee(devfreq).
Cc: stable@vger.kernel.org
Fixes:
|
||
---|---|---|
.. | ||
event | ||
devfreq-event.c | ||
devfreq.c | ||
exynos-bus.c | ||
governor_passive.c | ||
governor_performance.c | ||
governor_powersave.c | ||
governor_simpleondemand.c | ||
governor_userspace.c | ||
governor.h | ||
Kconfig | ||
Makefile | ||
rk3399_dmc.c | ||
tegra-devfreq.c |