提交 b0e449ce 编写于 作者: E Emil Goode 提交者: Tomi Valkeinen

OMAPDSS: Remove kfree for memory allocated with devm_kzalloc

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: NEmil Goode <emilgoode@gmail.com>
Signed-off-by: NTomi Valkeinen <tomi.valkeinen@ti.com>
上级 5391e87d
...@@ -469,8 +469,6 @@ static void picodlp_panel_remove(struct omap_dss_device *dssdev) ...@@ -469,8 +469,6 @@ static void picodlp_panel_remove(struct omap_dss_device *dssdev)
i2c_unregister_device(picod->picodlp_i2c_client); i2c_unregister_device(picod->picodlp_i2c_client);
dev_set_drvdata(dssdev->dev, NULL); dev_set_drvdata(dssdev->dev, NULL);
dev_dbg(dssdev->dev, "removing picodlp panel\n"); dev_dbg(dssdev->dev, "removing picodlp panel\n");
kfree(picod);
} }
static int picodlp_panel_enable(struct omap_dss_device *dssdev) static int picodlp_panel_enable(struct omap_dss_device *dssdev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册