summaryrefslogtreecommitdiffstats
path: root/drivers/gpu
diff options
context:
space:
mode:
authorAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>2014-11-07 14:07:41 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-11-12 10:53:04 +0100
commitf354d733f680ec9f9afed0d0fa6429ed259f0a52 (patch)
tree101283208cf16a87865ef8b0cd14e40ea502ac19 /drivers/gpu
parenteb84f976c88d72cbcbe756df38d1f19be3db77d6 (diff)
downloadlinux-f354d733f680ec9f9afed0d0fa6429ed259f0a52.tar.bz2
drm/i915: Plug memory leak in intel_shared_dpll_start_config()
The cleanup path would reset pll->new_config to NULL but wouldn't free the allocated memory. Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 3f4a5b83bea4..ea607f340c76 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -3953,6 +3953,7 @@ static int intel_shared_dpll_start_config(struct drm_i915_private *dev_priv,
cleanup:
while (--i >= 0) {
pll = &dev_priv->shared_dplls[i];
+ kfree(pll->new_config);
pll->new_config = NULL;
}