Skip to content

Commit 6e1fff7

Browse files
anholtpopcornmix
authored andcommitted
drm/vc4: Fix leak of HDMI EDID
We don't keep a pointer to it around anywhere, so it's our job to free it. Cc: Stefan Wahren <[email protected]> Link: anholt#101 Fixes: c8b75bc ("drm/vc4: Add KMS support for Raspberry Pi.") Signed-off-by: Eric Anholt <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: Daniel Vetter <[email protected]> Tested-by: Stefan Wahren <[email protected]> (cherry picked from commit 5afe0e6)
1 parent a35bdb8 commit 6e1fff7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/vc4/vc4_hdmi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ static int vc4_hdmi_connector_get_modes(struct drm_connector *connector)
243243
drm_mode_connector_update_edid_property(connector, edid);
244244
ret = drm_add_edid_modes(connector, edid);
245245
drm_edid_to_eld(connector, edid);
246+
kfree(edid);
246247

247248
return ret;
248249
}

0 commit comments

Comments
 (0)