Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1707511
| From | Eric Anholt <eric@anholt.net> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] drm/vc4: Fix leak of HDMI EDID |
| Date | 2017-08-09 19:00 +0200 |
| Message-ID | <ucCuT-1ua-27@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
We don't keep a pointer to it around anywhere, so it's our job to free
it.
Cc: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://github.com/anholt/linux/issues/101
Fixes: c8b75bca92cb ("drm/vc4: Add KMS support for Raspberry Pi.")
Signed-off-by: Eric Anholt <eric@anholt.net>
---
drivers/gpu/drm/vc4/vc4_hdmi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c
index ff09b8e2f9ee..937da8dd65b8 100644
--- a/drivers/gpu/drm/vc4/vc4_hdmi.c
+++ b/drivers/gpu/drm/vc4/vc4_hdmi.c
@@ -288,6 +288,7 @@ static int vc4_hdmi_connector_get_modes(struct drm_connector *connector)
drm_mode_connector_update_edid_property(connector, edid);
ret = drm_add_edid_modes(connector, edid);
drm_edid_to_eld(connector, edid);
+ kfree(edid);
return ret;
}
--
2.13.3
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] drm/vc4: Fix leak of HDMI EDID Eric Anholt <eric@anholt.net> - 2017-08-09 19:00 +0200 Re: [PATCH] drm/vc4: Fix leak of HDMI EDID Daniel Vetter <daniel@ffwll.ch> - 2017-08-09 19:40 +0200 Re: [PATCH] drm/vc4: Fix leak of HDMI EDID Stefan Wahren <stefan.wahren@i2se.com> - 2017-08-11 19:40 +0200
csiph-web