From: Ma Ling Date: Wed, 11 Mar 2009 10:18:29 +0000 (+0800) Subject: drm/i915: avoid hanging on to a stale pointer to raw_edid. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=6b731a65c86119da808b3687e0bbb8f18ab137ad;p=openwrt%2Fstaging%2Fblogic.git drm/i915: avoid hanging on to a stale pointer to raw_edid. drm_get_edid will store edid into raw_edid, so when freeing edid memory, at the same time clean raw_edid pointer. Signed-off-by: Ma Ling [anholt: Note that raw_edid is not currently used anywhere] Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/intel_modes.c b/drivers/gpu/drm/i915/intel_modes.c index e42019e5d661..07d7ec976168 100644 --- a/drivers/gpu/drm/i915/intel_modes.c +++ b/drivers/gpu/drm/i915/intel_modes.c @@ -76,6 +76,7 @@ int intel_ddc_get_modes(struct intel_output *intel_output) drm_mode_connector_update_edid_property(&intel_output->base, edid); ret = drm_add_edid_modes(&intel_output->base, edid); + intel_output->base.display_info.raw_edid = NULL; kfree(edid); }