projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e1d7fb
)
PM / devfreq: fix duplicated kfree on devfreq pointer
author
MyungJoo Ham
<myungjoo.ham@samsung.com>
Fri, 2 Oct 2015 03:48:54 +0000
(12:48 +0900)
committer
MyungJoo Ham
<myungjoo.ham@samsung.com>
Wed, 22 Jun 2016 04:52:40 +0000
(13:52 +0900)
device_unregister() calls kfree already.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c
patch
|
blob
|
history
diff --git
a/drivers/devfreq/devfreq.c
b/drivers/devfreq/devfreq.c
index
3801737
..
6f33c1e
100644
(file)
--- 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);
}