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 | ||
Kconfig | ||
Makefile | ||
devfreq-event.c | ||
devfreq.c | ||
exynos-bus.c | ||
governor.h | ||
governor_passive.c | ||
governor_performance.c | ||
governor_powersave.c | ||
governor_simpleondemand.c | ||
governor_userspace.c | ||
rk3399_dmc.c | ||
tegra-devfreq.c |