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

Commit a088ec67 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: fix the possible memory leak in driver catalog"

parents 0f0ec787 3c0ae012
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3970,8 +3970,10 @@ void sde_hw_catalog_deinit(struct sde_mdss_cfg *sde_cfg)
			kfree(sde_cfg->vbif[i].qos_tbl[j].priority_lvl);
	}

	for (i = 0; i < SDE_QOS_LUT_USAGE_MAX; i++)
	for (i = 0; i < SDE_QOS_LUT_USAGE_MAX; i++) {
		kfree(sde_cfg->perf.sfe_lut_tbl[i].entries);
		kfree(sde_cfg->perf.qos_lut_tbl[i].entries);
	}

	kfree(sde_cfg->dma_formats);
	kfree(sde_cfg->cursor_formats);