diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2015-10-02 05:48:54 +0200 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2016-06-22 06:52:40 +0200 |
commit | ac4b281176a54d17dd3f91b7fb4a4656471d8730 (patch) | |
tree | f5caf669c90fdd5d3498212ab4edc563ae7adfd3 /drivers | |
parent | PM / devfreq: devm_kzalloc to have dev pointer more precisely (diff) | |
download | linux-ac4b281176a54d17dd3f91b7fb4a4656471d8730.tar.xz linux-ac4b281176a54d17dd3f91b7fb4a4656471d8730.zip |
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')
-rw-r--r-- | drivers/devfreq/devfreq.c | 1 |
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); } |