From 4a28ae58c0abad2d45a45db21e86c7166b2b4462 Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Wed, 9 Oct 2013 13:52:36 -0300 Subject: [PATCH] drm/i915: don't leak dp_connector at intel_ddi_init Regression introduced by: commit 311a20949f047a70935d6591010f42336f5402e7 Author: Paulo Zanoni 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 Signed-off-by: Daniel Vetter --- Reading git-format-patch failed