From: MyungJoo Ham Date: Fri, 2 Oct 2015 03:48:54 +0000 (+0900) Subject: PM / devfreq: fix duplicated kfree on devfreq pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ac4b281176a54d17dd3f91b7fb4a4656471d8730;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PM / devfreq: fix duplicated kfree on devfreq pointer device_unregister() calls kfree already. Signed-off-by: MyungJoo Ham --- diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 380173738a1d..6f33c1e89a14 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -603,7 +603,6 @@ struct devfreq *devfreq_add_device(struct device *dev, err_init: list_del(&devfreq->node); device_unregister(&devfreq->dev); - kfree(devfreq); err_out: return ERR_PTR(err); }