projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5391e87
)
OMAPDSS: Remove kfree for memory allocated with devm_kzalloc
author
Emil Goode
<emilgoode@gmail.com>
Wed, 5 Jun 2013 17:29:56 +0000
(19:29 +0200)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Mon, 17 Jun 2013 11:00:56 +0000
(14:00 +0300)
It's not necessary to free memory allocated with devm_kzalloc
in a remove function and using kfree leads to a double free.
Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/displays/panel-picodlp.c
patch
|
blob
|
history
diff --git
a/drivers/video/omap2/displays/panel-picodlp.c
b/drivers/video/omap2/displays/panel-picodlp.c
index
875b890
..
153e9be
100644
(file)
--- a/
drivers/video/omap2/displays/panel-picodlp.c
+++ b/
drivers/video/omap2/displays/panel-picodlp.c
@@
-469,8
+469,6
@@
static void picodlp_panel_remove(struct omap_dss_device *dssdev)
i2c_unregister_device(picod->picodlp_i2c_client);
dev_set_drvdata(dssdev->dev, NULL);
dev_dbg(dssdev->dev, "removing picodlp panel\n");
-
- kfree(picod);
}
static int picodlp_panel_enable(struct omap_dss_device *dssdev)