summaryrefslogtreecommitdiff
path: root/drivers/devfreq/devfreq.c
diff options
context:
space:
mode:
authorMyungJoo Ham <myungjoo.ham@samsung.com>2015-10-02 06:48:54 +0300
committerMyungJoo Ham <myungjoo.ham@samsung.com>2016-06-22 07:52:40 +0300
commitac4b281176a54d17dd3f91b7fb4a4656471d8730 (patch)
treef5caf669c90fdd5d3498212ab4edc563ae7adfd3 /drivers/devfreq/devfreq.c
parent3e1d7fb0d279fea19eb4e36cc9bddf89264ba03f (diff)
downloadlinux-ac4b281176a54d17dd3f91b7fb4a4656471d8730.tar.xz
PM / devfreq: fix duplicated kfree on devfreq pointer
device_unregister() calls kfree already. Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r--drivers/devfreq/devfreq.c1
1 files changed, 0 insertions, 1 deletions
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);
}