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 <stefan.wahren@i2se.com>
Link: anholt#101
Fixes: c8b75bc ("drm/vc4: Add KMS support for Raspberry Pi.")
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20170808205605.4432-1-eric@anholt.net
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
(cherry picked from commit 5afe0e6)
  • Loading branch information
anholt authored and popcornmix committed Feb 6, 2018
1 parent a35bdb8 commit 6e1fff7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/vc4/vc4_hdmi.c
Expand Up @@ -243,6 +243,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 6e1fff7

Please sign in to comment.