drm: remove the raw_edid field from struct drm_display_info
commit451023dc32d4542c21b52ad1692e6e01cb75b099
authorJani Nikula <jani.nikula@intel.com>
Wed, 15 Aug 2012 09:32:39 +0000 (15 09:32 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Aug 2012 23:37:36 +0000 (24 09:37 +1000)
tree9380bd992f953d0a7403b3894bd1d946b6fbca91
parent993dcb05e47e357ade19c41f60b39085eeba8787
drm: remove the raw_edid field from struct drm_display_info

Neither the drm core nor any of the drivers really need the raw_edid field
of struct drm_display_info for anything. Instead of being useful, it
creates confusion about who is responsible for freeing the memory it points
to and setting the field to NULL afterwards, leading to memory leaks and
dangling pointers.

Remove the raw_edid field, and fix drivers as necessary.

Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
15 files changed:
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/drm_edid_load.c
drivers/gpu/drm/exynos/exynos_drm_connector.c
drivers/gpu/drm/exynos/exynos_drm_vidi.c
drivers/gpu/drm/gma500/cdv_intel_hdmi.c
drivers/gpu/drm/gma500/oaktrail_hdmi.c
drivers/gpu/drm/gma500/psb_intel_sdvo.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/i915/intel_modes.c
drivers/gpu/drm/i915/intel_sdvo.c
drivers/gpu/drm/mgag200/mgag200_mode.c
drivers/gpu/drm/udl/udl_connector.c
drivers/staging/omapdrm/omap_connector.c
include/drm/drm_crtc.h