Skip to content

Commit

Permalink
drm/vc4: Fix leak of HDMI EDID
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
anholt committed Aug 14, 2017
1 parent b88fa00 commit 5afe0e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/vc4/vc4_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5afe0e6

Please sign in to comment.