drm/i915: avoid hanging on to a stale pointer to raw_edid.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, April 2, 2009 - 10:07 pm

Gitweb:     http://git.kernel.org/linus/6b731a65c86119da808b3687e0bbb8f18ab137ad
Commit:     6b731a65c86119da808b3687e0bbb8f18ab137ad
Parent:     959b887cf42fd63cf10e28a7f26126f78aa1c0b0
Author:     Ma Ling <ling.ma@intel.com>
AuthorDate: Wed Mar 11 18:18:29 2009 +0800
Committer:  Eric Anholt <eric@anholt.net>
CommitDate: Wed Apr 1 11:59:19 2009 -0700

    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 <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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_modes.c b/drivers/gpu/drm/i915/intel_modes.c
index e42019e..07d7ec9 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);
 	}
 
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
drm/i915: avoid hanging on to a stale pointer to raw_edid., Linux Kernel Mailing ..., (Thu Apr 2, 10:07 pm)