Skip to content

Commit 8135cc7

Browse files
anholtJosh Boyer
authored and
Josh Boyer
committed
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/linux#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]>
1 parent a5291ce commit 8135cc7

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
@@ -260,6 +260,7 @@ static int vc4_hdmi_connector_get_modes(struct drm_connector *connector)
260260
drm_mode_connector_update_edid_property(connector, edid);
261261
ret = drm_add_edid_modes(connector, edid);
262262
drm_edid_to_eld(connector, edid);
263+
kfree(edid);
263264

264265
return ret;
265266
}

0 commit comments

Comments
 (0)