drm/i915: avoid hanging on to a stale pointer to raw_edid.
authorMa Ling <ling.ma@intel.com>
Wed, 11 Mar 2009 10:18:29 +0000 (18:18 +0800)
committerEric Anholt <eric@anholt.net>
Wed, 1 Apr 2009 18:59:19 +0000 (11:59 -0700)
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 <ling.ma@intel.com>
[anholt: Note that raw_edid is not currently used anywhere]
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_modes.c

index e42019e5d6610ee3bdd927a0dd94887a9ba178d8..07d7ec976168e5bf952991927d6815ff91d2bf83 100644 (file)
@@ -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);
        }