diff options
author | MyungJoo Ham <myungjoo.ham@samsung.com> | 2015-10-01 23:48:54 -0400 |
---|---|---|
committer | MyungJoo Ham <myungjoo.ham@samsung.com> | 2016-06-22 00:52:40 -0400 |
commit | ac4b281176a54d17dd3f91b7fb4a4656471d8730 (patch) | |
tree | f5caf669c90fdd5d3498212ab4edc563ae7adfd3 | |
parent | 3e1d7fb0d279fea19eb4e36cc9bddf89264ba03f (diff) |
PM / devfreq: fix duplicated kfree on devfreq pointer
device_unregister() calls kfree already.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-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, | |||
603 | err_init: | 603 | err_init: |
604 | list_del(&devfreq->node); | 604 | list_del(&devfreq->node); |
605 | device_unregister(&devfreq->dev); | 605 | device_unregister(&devfreq->dev); |
606 | kfree(devfreq); | ||
607 | err_out: | 606 | err_out: |
608 | return ERR_PTR(err); | 607 | return ERR_PTR(err); |
609 | } | 608 | } |