diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2015-10-02 12:48:54 +0900 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2016-06-22 13:52:40 +0900 |
commit | ac4b281176a54d17dd3f91b7fb4a4656471d8730 (patch) | |
tree | f5caf669c90fdd5d3498212ab4edc563ae7adfd3 /drivers/devfreq | |
parent | 3e1d7fb0d279fea19eb4e36cc9bddf89264ba03f (diff) | |
download | linux-ac4b281176a54d17dd3f91b7fb4a4656471d8730.tar.bz2 |
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')
-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); } |