]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: don't leak dp_connector at intel_ddi_init
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 9 Oct 2013 16:52:36 +0000 (13:52 -0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Oct 2013 10:47:13 +0000 (12:47 +0200)
commitaef42166c51d6d7ee4b79d304d37dd8fd8bf1591
treec93103c4f7b1082f16cce0a612f28d07cc2d2541
parent17fc77e7f7dfa0c74e1228db0f78329cb8ff3888
drm/i915: don't leak dp_connector at intel_ddi_init

Regression introduced by:
    commit b66e3ab39e9fa3a7908821e5e577d783c7c0ea62
    Author: Paulo Zanoni <paulo.r.zanoni@intel.com>
        drm/i915: don't init DP or HDMI when not supported by DDI port

Since the commit above it is possible to have a DDI encoder that has
the HDMI connector but not the DP connector (in case the port doesn't
support DP). In this case, we must properly free the DP connector.

We just leak this once, so it's not a big deal.

Reported by kmemleak.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c