projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2d0160
)
drm/exynos/hdmi: fix edid memory leak
author
Andrzej Hajda
<
[email protected]
>
Thu, 9 Jul 2015 06:25:38 +0000
(08:25 +0200)
committer
Inki Dae
<
[email protected]
>
Tue, 11 Aug 2015 08:21:34 +0000
(17:21 +0900)
edid returned by drm_get_edid should be freed.
The patch fixes it.
Signed-off-by: Andrzej Hajda <
[email protected]
>
Reviewed-by: Joonyoung Shim <
[email protected]
>
Signed-off-by: Inki Dae <
[email protected]
>
drivers/gpu/drm/exynos/exynos_hdmi.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/exynos/exynos_hdmi.c
b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 99e286489031c4a2931565823e0158428548aef2..4a00990e4ae4e8459b94a9a007044af1cc11af62 100644
(file)
--- a/
drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/
drivers/gpu/drm/exynos/exynos_hdmi.c
@@
-1064,6
+1064,7
@@
static int hdmi_get_modes(struct drm_connector *connector)
{
struct hdmi_context *hdata = ctx_from_connector(connector);
struct edid *edid;
+ int ret;
if (!hdata->ddc_adpt)
return -ENODEV;
@@
-1079,7
+1080,11
@@
static int hdmi_get_modes(struct drm_connector *connector)
drm_mode_connector_update_edid_property(connector, edid);
- return drm_add_edid_modes(connector, edid);
+ ret = drm_add_edid_modes(connector, edid);
+
+ kfree(edid);
+
+ return ret;
}
static int hdmi_find_phy_conf(struct hdmi_context *hdata, u32 pixel_clock)