]> 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)
commit357e112f559c400e5158b3f54c33ef14c77fba45
treec93103c4f7b1082f16cce0a612f28d07cc2d2541
parent0e8beeb12b4b2d90a9cb175d04b7834df614717e
drm/i915: don't leak dp_connector at intel_ddi_init

Regression introduced by:
    commit 7867671918c724957d40c542e001bc777deb2315
    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