]> git.karo-electronics.de Git - linux-beck.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)
commit4a28ae58c0abad2d45a45db21e86c7166b2b4462
treec93103c4f7b1082f16cce0a612f28d07cc2d2541
parent2cdfe6c8efb9d7dab577d610b6cdab198482cec1
drm/i915: don't leak dp_connector at intel_ddi_init

Regression introduced by:
    commit 311a20949f047a70935d6591010f42336f5402e7
    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