diff mbox

PM / devfreq: fix duplicated kfree on devfreq pointer

Message ID 1782450689.743721463366773827.JavaMail.weblogic@ep2mlwas03c (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

MyungJoo Ham May 16, 2016, 2:46 a.m. UTC
device_unregister() calls kfree already.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>

---
 drivers/devfreq/devfreq.c | 1 -
 1 file changed, 1 deletion(-)

-- 
1.9.1
diff mbox

Patch

diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
index 31faf85..20e8ac1 100644
--- a/drivers/devfreq/devfreq.c
+++ b/drivers/devfreq/devfreq.c
@@ -565,7 +565,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);
 }