On Thu, Sep 04, 2014 at 09:43:45PM +0100, Chris Wilson wrote:
> Oops, apparently intel_hdmi/intel_dp is the encoder - an object with a
> distinct lifetime to the connector, and so we cannot simply reuse the
> common function to unset and free the edid.
> 
> Signed-off-by: Chris Wilson <ch...@chris-wilson.co.uk>

Queued for -next, thanks for the patch.
-Daniel

> ---
>  drivers/gpu/drm/i915/intel_dp.c   | 2 +-
>  drivers/gpu/drm/i915/intel_hdmi.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/intel_dp.c b/drivers/gpu/drm/i915/intel_dp.c
> index df477cd34b6b..082ef3eda5a5 100644
> --- a/drivers/gpu/drm/i915/intel_dp.c
> +++ b/drivers/gpu/drm/i915/intel_dp.c
> @@ -4415,7 +4415,7 @@ intel_dp_connector_destroy(struct drm_connector 
> *connector)
>  {
>       struct intel_connector *intel_connector = to_intel_connector(connector);
>  
> -     intel_dp_unset_edid(intel_attached_dp(connector));
> +     kfree(intel_connector->detect_edid);
>  
>       if (!IS_ERR_OR_NULL(intel_connector->edid))
>               kfree(intel_connector->edid);
> diff --git a/drivers/gpu/drm/i915/intel_hdmi.c 
> b/drivers/gpu/drm/i915/intel_hdmi.c
> index 867247b935f5..084a182bceb6 100644
> --- a/drivers/gpu/drm/i915/intel_hdmi.c
> +++ b/drivers/gpu/drm/i915/intel_hdmi.c
> @@ -1495,7 +1495,7 @@ static void chv_hdmi_pre_enable(struct intel_encoder 
> *encoder)
>  
>  static void intel_hdmi_destroy(struct drm_connector *connector)
>  {
> -     intel_hdmi_unset_edid(connector);
> +     kfree(to_intel_connector(connector)->detect_edid);
>       drm_connector_cleanup(connector);
>       kfree(connector);
>  }
> -- 
> 2.1.0
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to