Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f354d733 authored by Ander Conselvan de Oliveira's avatar Ander Conselvan de Oliveira Committed by Daniel Vetter
Browse files

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: default avatarAnder Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Reviewed-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent eb84f976
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
	}